Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
mentegy committed Apr 4, 2018
1 parent 3853c18 commit 374ce91
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 33 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package io.getquill.context.sql

trait ConflictSpec {
val ctx: SqlContext[_, _]


case class Address(id: Int, street: String, zip: Int)

import ctx._
val q = quote {
query[Address]
}

}
34 changes: 2 additions & 32 deletions quill-sql/src/test/sql/mysql-schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -115,38 +115,8 @@ CREATE TABLE Contact(
);

CREATE TABLE Address(
id int,
id int primary key,
street VARCHAR(255),
zip int,
otherExtraInfo VARCHAR(255)
);

CREATE TABLE Contact(
firstName VARCHAR(255),
lastName VARCHAR(255),
age int,
addressFk int,
extraInfo VARCHAR(255)
);

CREATE TABLE Address(
id int,
street VARCHAR(255),
zip int,
otherExtraInfo VARCHAR(255)
);

CREATE TABLE Contact(
firstName VARCHAR(255),
lastName VARCHAR(255),
age int,
addressFk int,
extraInfo VARCHAR(255)
);

CREATE TABLE Address(
id int,
street VARCHAR(255),
zip int,
otherExtraInfo VARCHAR(255)
);
);
5 changes: 4 additions & 1 deletion quill-sql/src/test/sql/postgres-schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,11 @@ CREATE TABLE Contact(
);

CREATE TABLE Address(
id int,
id int primary key,
street VARCHAR(255),
zip int,
otherExtraInfo VARCHAR(255)
);


CREATE UNIQUE INDEX address_index on Contact (firstName, lastName) where age > 18;

0 comments on commit 374ce91

Please sign in to comment.