Add RETURN INFO command to sql queries

This commit is contained in:
Tobie Morgan Hitchcock 2016-10-14 08:01:56 +01:00
parent f23d1e10d7
commit daa8db511c

View file

@ -955,7 +955,7 @@ func Test_Parse_Queries_Create(t *testing.T) {
},
{
sql: `CREATE person RETURN SOMETHING`,
err: "Found `SOMETHING` but expected `ID, NONE, BOTH, DIFF, BEFORE, AFTER`",
err: "Found `SOMETHING` but expected `ID, NONE, INFO, BOTH, DIFF, BEFORE, AFTER`",
},
}
@ -1096,7 +1096,7 @@ func Test_Parse_Queries_Update(t *testing.T) {
},
{
sql: `UPDATE person RETURN SOMETHING`,
err: "Found `SOMETHING` but expected `ID, NONE, BOTH, DIFF, BEFORE, AFTER`",
err: "Found `SOMETHING` but expected `ID, NONE, INFO, BOTH, DIFF, BEFORE, AFTER`",
},
}
@ -1186,7 +1186,7 @@ func Test_Parse_Queries_Modify(t *testing.T) {
},
{
sql: `MODIFY @person:test DIFF {"diff": true} RETURN SOMETHING`,
err: "Found `SOMETHING` but expected `ID, NONE, BOTH, DIFF, BEFORE, AFTER`",
err: "Found `SOMETHING` but expected `ID, NONE, INFO, BOTH, DIFF, BEFORE, AFTER`",
},
}
@ -1259,7 +1259,7 @@ func Test_Parse_Queries_Delete(t *testing.T) {
},
{
sql: `DELETE person RETURN SOMETHING`,
err: "Found `SOMETHING` but expected `ID, NONE, BOTH, DIFF, BEFORE, AFTER`",
err: "Found `SOMETHING` but expected `ID, NONE, INFO, BOTH, DIFF, BEFORE, AFTER`",
},
}