Skip to content

Commit 82bb8bf

Browse files
author
James Cor
committed
fix test
1 parent 36ced48 commit 82bb8bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

enginetest/queries/check_scripts.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ CREATE TABLE t4
329329
{
330330
Name: "check constraints using keywords",
331331
SetUpScript: []string{
332-
"create table t (`order` int primary key, check(`order` > 0));",
332+
"create table t (`order` int primary key, constraint chk check (`order` > 0));",
333333
},
334334
Assertions: []ScriptTestAssertion{
335335
{
@@ -351,7 +351,7 @@ CREATE TABLE t4
351351
{
352352
Query: "show create table t;",
353353
Expected: []sql.Row{
354-
{"t", "CREATE TABLE `t` (\n `order` int NOT NULL,\n PRIMARY KEY (`order`),\n CONSTRAINT `t_chk_1` CHECK ((`order` > 0))\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_bin"},
354+
{"t", "CREATE TABLE `t` (\n `order` int NOT NULL,\n PRIMARY KEY (`order`),\n CONSTRAINT `chk` CHECK ((`order` > 0))\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_bin"},
355355
},
356356
},
357357
},

0 commit comments

Comments
 (0)