rmculpepper / sql

Embedding of some of SQL into Racket
33 stars 5 forks source link

(.* table) emits incorrect SQL statement #28

Open xh4 opened 2 years ago

xh4 commented 2 years ago

Hi

I found the field selection notation under the mysql dialect produces incorrect SQL statements.

For example

(parameterize ((current-sql-dialect 'mysql))
  (sql-statement->string (select (.* user) #:from user)))

produces

SELECT (user).* FROM user

which is invalid.