@@ -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.
202202func 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 },
0 commit comments