mirror of
https://github.com/dg/dibi.git
synced 2025-08-07 22:56:35 +02:00
tests: fixes
This commit is contained in:
@@ -5,21 +5,21 @@ CREATE TABLE [products] (
|
||||
|
||||
CREATE INDEX "title" ON "products" ("title");
|
||||
|
||||
INSERT INTO "products" ("product_id", "title") VALUES (1, 'Chair');
|
||||
INSERT INTO "products" ("product_id", "title") VALUES (2, 'Table');
|
||||
INSERT INTO "products" ("product_id", "title") VALUES (3, 'Computer');
|
||||
INSERT INTO "products" ("product_id", "title") VALUES (1, 'Chair');
|
||||
INSERT INTO "products" ("product_id", "title") VALUES (2, 'Table');
|
||||
INSERT INTO "products" ("product_id", "title") VALUES (3, 'Computer');
|
||||
|
||||
CREATE TABLE [customers] (
|
||||
[customer_id] INTEGER PRIMARY KEY NOT NULL,
|
||||
[name] VARCHAR(100) NOT NULL
|
||||
);
|
||||
|
||||
INSERT INTO "customers" ("customer_id", "name") VALUES (1, 'Dave Lister');
|
||||
INSERT INTO "customers" ("customer_id", "name") VALUES (2, 'Arnold Rimmer');
|
||||
INSERT INTO "customers" ("customer_id", "name") VALUES (3, 'The Cat');
|
||||
INSERT INTO "customers" ("customer_id", "name") VALUES (4, 'Holly');
|
||||
INSERT INTO "customers" ("customer_id", "name") VALUES (5, 'Kryten');
|
||||
INSERT INTO "customers" ("customer_id", "name") VALUES (6, 'Kristine Kochanski');
|
||||
INSERT INTO "customers" ("customer_id", "name") VALUES (1, 'Dave Lister');
|
||||
INSERT INTO "customers" ("customer_id", "name") VALUES (2, 'Arnold Rimmer');
|
||||
INSERT INTO "customers" ("customer_id", "name") VALUES (3, 'The Cat');
|
||||
INSERT INTO "customers" ("customer_id", "name") VALUES (4, 'Holly');
|
||||
INSERT INTO "customers" ("customer_id", "name") VALUES (5, 'Kryten');
|
||||
INSERT INTO "customers" ("customer_id", "name") VALUES (6, 'Kristine Kochanski');
|
||||
|
||||
CREATE TABLE [orders] (
|
||||
[order_id] INTEGER NOT NULL PRIMARY KEY,
|
||||
@@ -30,7 +30,7 @@ CREATE TABLE [orders] (
|
||||
CONSTRAINT orders_customer FOREIGN KEY (customer_id) REFERENCES customers (customer_id)
|
||||
);
|
||||
|
||||
INSERT INTO "orders" ("order_id", "customer_id", "product_id", "amount") VALUES (1, 2, 1, '7.0');
|
||||
INSERT INTO "orders" ("order_id", "customer_id", "product_id", "amount") VALUES (2, 2, 3, '2.0');
|
||||
INSERT INTO "orders" ("order_id", "customer_id", "product_id", "amount") VALUES (3, 1, 2, '3.0');
|
||||
INSERT INTO "orders" ("order_id", "customer_id", "product_id", "amount") VALUES (4, 6, 3, '5.0');
|
||||
INSERT INTO "orders" ("order_id", "customer_id", "product_id", "amount") VALUES (1, 2, 1, '7.0');
|
||||
INSERT INTO "orders" ("order_id", "customer_id", "product_id", "amount") VALUES (2, 2, 3, '2.0');
|
||||
INSERT INTO "orders" ("order_id", "customer_id", "product_id", "amount") VALUES (3, 1, 2, '3.0');
|
||||
INSERT INTO "orders" ("order_id", "customer_id", "product_id", "amount") VALUES (4, 6, 3, '5.0');
|
||||
|
Reference in New Issue
Block a user