I'm using duckdb ODBC driver with SAS. SAS automatically generated ODBC escape date literal format {d 'YYYY-MM-DD'}, and DuckDB throws a parser error:
ERROR: CLI prepare error: ODBC_DuckDB->duckdb->PrepareStmt Parser Error: syntax error at or near "'2024-01-01'" LINE 1: ...", "encounterid" FROM
DIAGNOSIS WHERE ( "admit_date" >= {d '2024-01-01' } ) ^
SQL statement: SELECT "admit_date", "encounterid" FROM DIAGNOSIS WHERE ( "admit_date" >= {d
'2024-01-01' } ).
Does DuckDB recognize date literal {d 'YYYY-MM-DD'}, or is there any option in the driver to translate it to DATE 'YYYY-MM-DD'?