Support for additional string functions.

This commit is contained in:
zer0sub 2019-06-02 12:45:46 +02:00
parent 3c4b078941
commit aef698bdbc
6 changed files with 272 additions and 19 deletions

View file

@ -40,3 +40,8 @@ func TestStringLT_EQ(t *testing.T) {
assertExpressionSerialize(t, exp, "(table3.col2 <= table2.colStr)")
assertExpressionSerialize(t, table3StrCol.LT_EQ(String("JOHN")), "(table3.col2 <= $1)", "JOHN")
}
func TestStringCONCAT(t *testing.T) {
assertExpressionSerialize(t, table3StrCol.CONCAT(table2ColStr), "(table3.col2 || table2.colStr)")
assertExpressionSerialize(t, table3StrCol.CONCAT(String("JOHN")), "(table3.col2 || $1)", "JOHN")
}