Skip to content

Commit d6d8a1d

Browse files
author
Stuart Grigg
committed
test mssql and mysql
1 parent 7347ee3 commit d6d8a1d

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

testdata/mssql_test_schema.sql

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,3 +437,10 @@ CREATE TABLE powers_of_two
437437
CONSTRAINT machine_name UNIQUE(machine_name)
438438
);
439439
GO
440+
441+
-- Previously the generated code had a naming clash when a table was called 'updates'
442+
CREATE TABLE updates
443+
(
444+
id integer PRIMARY KEY NOT NULL
445+
);
446+
GO

testdata/mysql_test_schema.sql

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ CREATE TABLE race (
294294
CREATE TABLE race_results (
295295
id integer PRIMARY KEY NOT NULL,
296296
race_id integer,
297-
name text,
297+
name text,
298298
foreign key (race_id) references race(id)
299299
);
300300

@@ -342,7 +342,7 @@ ALTER TABLE pilot_languages ADD CONSTRAINT pilot_language_fkey FOREIGN KEY (pilo
342342
ALTER TABLE pilot_languages ADD CONSTRAINT languages_fkey FOREIGN KEY (language_id) REFERENCES languages(id);
343343

344344
CREATE TABLE powers_of_two (
345-
vid int(10) unsigned NOT NULL AUTO_INCREMENT,
345+
vid int(10) unsigned NOT NULL AUTO_INCREMENT,
346346
name varchar(255) NOT NULL DEFAULT '',
347347
machine_name varchar(255) NOT NULL DEFAULT '',
348348
description longtext,
@@ -353,3 +353,8 @@ CREATE TABLE powers_of_two (
353353
UNIQUE KEY machine_name (machine_name),
354354
KEY list (weight,name)
355355
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
356+
357+
-- Previously the generated code had a naming clash when a table was called 'updates'
358+
CREATE TABLE updates (
359+
id integer PRIMARY KEY NOT NULL
360+
);

0 commit comments

Comments
 (0)