However, I'm encountering a SQL parse error that I can't seem to resolve. The error message is as follows:
admin:dev: ❌ tRPC failed on users.getUserList: SQL_PARSE_ERROR: SQL string could not be parsed: near LP, "None": syntax error at (1, 2)admin:dev: ❌ tRPC failed on users.getUserList: SQL_PARSE_ERROR: SQL string could not be parsed: near LP, "None": syntax error at (1, 2)admin:dev: ❌ tRPC failed on users.getUserList: SQL_PARSE_ERROR: SQL string could not be parsed: near LP, "None": syntax error at (1, 2)
admin:dev: ❌ tRPC failed on users.getUserList: SQL_PARSE_ERROR: SQL string could not be parsed: near LP, "None": syntax error at (1, 2)admin:dev: ❌ tRPC failed on users.getUserList: SQL_PARSE_ERROR: SQL string could not be parsed: near LP, "None": syntax error at (1, 2)admin:dev: ❌ tRPC failed on users.getUserList: SQL_PARSE_ERROR: SQL string could not be parsed: near LP, "None": syntax error at (1, 2)
It seems there's an issue with the way the query is being parsed. I'm wondering if I'm using the
sql
sql
template literal incorrectly or if there's a different way I should be structuring these types of queries.
Could anyone provide some insight into what might be going wrong here, or share how to correctly execute such a query using Drizzle ORM? Any help would be greatly appreciated!