branch: elpa/emacsql commit 76acd4f8a1b418c8628daefb33cfe4a66b33f80c Author: Christopher Wellons <well...@nullprogram.com> Commit: Christopher Wellons <well...@nullprogram.com>
Add a test for reserved word escaping. --- tests/emacsql-compiler-tests.el | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/emacsql-compiler-tests.el b/tests/emacsql-compiler-tests.el index 8a5d59e557..5297245f3c 100644 --- a/tests/emacsql-compiler-tests.el +++ b/tests/emacsql-compiler-tests.el @@ -10,6 +10,7 @@ (should (string= (emacsql-escape-identifier 'foo) "foo")) (should (string= (emacsql-escape-identifier 'a\ b) "\"a\\ b\"")) (should (string= (emacsql-escape-identifier '$foo) "\"$foo\"")) + (should (string= (emacsql-escape-identifier 'select) "\"select\"")) (should-error (emacsql-escape-identifier 10)) (should-error (emacsql-escape-identifier nil)) (should (string= (emacsql-escape-identifier 'person-id) "person_id"))