test: unit test for the custom variables

This commit is contained in:
xiaowei 2021-09-08 20:23:58 +08:00 committed by Ziv
parent df18e6cb21
commit 5404cdd4d0

View File

@ -312,4 +312,13 @@ SELECT * FROM t2;`,
];
validateTest(sqls);
});
test('Customizing variables with the ${} symbol', () => {
const sqls = [
`select * from \${tb};`,
`select a as \${b_} from tb_test;`,
'select a as ${bb} from ${tt}',
];
validateTest(sqls);
});
});