@@ -2833,13 +2833,13 @@ var ProcedureCreateInSubroutineTests = []ScriptTest{
28332833 Name : "table ddl statements in stored procedures" ,
28342834 Assertions : []ScriptTestAssertion {
28352835 {
2836- Query : "create procedure create_proc() create table t (i int primary key, j int);" ,
2836+ Query : "create procedure create_proc() create table t (i int primary key, j int);" ,
28372837 Expected : []sql.Row {
28382838 {types .NewOkResult (0 )},
28392839 },
28402840 },
28412841 {
2842- Query : "call create_proc()" ,
2842+ Query : "call create_proc()" ,
28432843 Expected : []sql.Row {
28442844 {types .NewOkResult (0 )},
28452845 },
@@ -2855,70 +2855,70 @@ var ProcedureCreateInSubroutineTests = []ScriptTest{
28552855 },
28562856 },
28572857 {
2858- Query : "call create_proc()" ,
2858+ Query : "call create_proc()" ,
28592859 ExpectedErrStr : "table with name t already exists" ,
28602860 },
28612861
28622862 {
2863- Query : "create procedure insert_proc() insert into t values (1, 1), (2, 2), (3, 3);" ,
2863+ Query : "create procedure insert_proc() insert into t values (1, 1), (2, 2), (3, 3);" ,
28642864 Expected : []sql.Row {
28652865 {types .NewOkResult (0 )},
28662866 },
28672867 },
28682868 {
2869- Query : "call insert_proc()" ,
2869+ Query : "call insert_proc()" ,
28702870 Expected : []sql.Row {
28712871 {types .NewOkResult (3 )},
28722872 },
28732873 },
28742874 {
2875- Query : "select * from t" ,
2875+ Query : "select * from t" ,
28762876 Expected : []sql.Row {
28772877 {1 , 1 },
28782878 {2 , 2 },
28792879 {3 , 3 },
28802880 },
28812881 },
28822882 {
2883- Query : "call insert_proc()" ,
2883+ Query : "call insert_proc()" ,
28842884 ExpectedErrStr : "duplicate primary key given: [1]" ,
28852885 },
28862886
28872887 {
2888- Query : "create procedure update_proc() update t set j = 999 where i > 1;" ,
2888+ Query : "create procedure update_proc() update t set j = 999 where i > 1;" ,
28892889 Expected : []sql.Row {
28902890 {types .NewOkResult (0 )},
28912891 },
28922892 },
28932893 {
2894- Query : "call update_proc()" ,
2894+ Query : "call update_proc()" ,
28952895 Expected : []sql.Row {
28962896 {types.OkResult {RowsAffected : 2 , Info : plan.UpdateInfo {Matched : 2 , Updated : 2 }}},
28972897 },
28982898 },
28992899 {
2900- Query : "select * from t" ,
2900+ Query : "select * from t" ,
29012901 Expected : []sql.Row {
29022902 {1 , 1 },
29032903 {2 , 999 },
29042904 {3 , 999 },
29052905 },
29062906 },
29072907 {
2908- Query : "call update_proc()" ,
2908+ Query : "call update_proc()" ,
29092909 Expected : []sql.Row {
29102910 {types.OkResult {RowsAffected : 0 , Info : plan.UpdateInfo {Matched : 2 }}},
29112911 },
29122912 },
29132913
29142914 {
2915- Query : "create procedure drop_proc() drop table t;" ,
2915+ Query : "create procedure drop_proc() drop table t;" ,
29162916 Expected : []sql.Row {
29172917 {types .NewOkResult (0 )},
29182918 },
29192919 },
29202920 {
2921- Query : "call drop_proc()" ,
2921+ Query : "call drop_proc()" ,
29222922 Expected : []sql.Row {
29232923 {types .NewOkResult (0 )},
29242924 },
@@ -2928,7 +2928,7 @@ var ProcedureCreateInSubroutineTests = []ScriptTest{
29282928 Expected : []sql.Row {},
29292929 },
29302930 {
2931- Query : "call drop_proc()" ,
2931+ Query : "call drop_proc()" ,
29322932 ExpectedErrStr : "Unknown table 't'" ,
29332933 },
29342934 },
0 commit comments