Skip to content

Commit 1b6b2ba

Browse files
committed
add test
1 parent 44f3d60 commit 1b6b2ba

File tree

2 files changed

+18
-11
lines changed

2 files changed

+18
-11
lines changed

enginetest/memory_engine_test.go

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -200,22 +200,28 @@ func TestSingleQueryPrepared(t *testing.T) {
200200

201201
// Convenience test for debugging a single query. Unskip and set to the desired query.
202202
func TestSingleScript(t *testing.T) {
203-
t.Skip()
203+
//t.Skip()
204204
var scripts = []queries.ScriptTest{
205205
{
206-
Name: "AS OF propagates to nested CALLs",
207-
SetUpScript: []string{},
206+
Name: "Dolt diff query returns correct tables (regression 1.59.18)",
207+
SetUpScript: []string{
208+
"SET GLOBAL local_infile=1;",
209+
`CREATE TABLE my_table (
210+
id int NOT NULL,
211+
txt varchar(16) NOT NULL,
212+
PRIMARY KEY (id)
213+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;`,
214+
`LOAD DATA INFILE 'C:/Users/Elian/dolt_workspace/db/9969/data'
215+
INTO TABLE my_table
216+
FIELDS TERMINATED BY ',' ENCLOSED BY '"' ESCAPED BY '"'
217+
LINES TERMINATED BY '\n'
218+
(id, txt);`,
219+
},
208220
Assertions: []queries.ScriptTestAssertion{
209221
{
210-
Query: "create procedure create_proc() create table t (i int primary key, j int);",
211-
Expected: []sql.Row{
212-
{types.NewOkResult(0)},
213-
},
214-
},
215-
{
216-
Query: "call create_proc()",
222+
Query: `SELECT * FROM my_table LIMIT 1`,
217223
Expected: []sql.Row{
218-
{types.NewOkResult(0)},
224+
{1, "foo,bar"},
219225
},
220226
},
221227
},

enginetest/testdata/data9969

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"1","foo,bar"

0 commit comments

Comments
 (0)