Skip to content

Conversation

@killianarts
Copy link
Contributor

Problem

When passing a sxql:sql-compiled object to select-by-sql or retrieve-by-sql, I get the following error:

#<SXQL-COMPILED: SELECT account.*, leg.* FROM leg INNER JOIN account ON (leg.account_id = account.id) WHERE (account.id = ?) [1]> fell through ETYPECASE expression.
Wanted one of (STRING
               (OR SXQL/SQL-TYPE:SQL-STATEMENT
                   SXQL/COMPOSED-STATEMENT:COMPOSED-STATEMENT
                   SXQL/SQL-TYPE:CONJUNCTIVE-OP)).
   [Condition of type SB-KERNEL:CASE-FAILURE]

Solution

Add sxql/composer:select-query-state to ensure-sql etypecase form.

@fukamachi fukamachi merged commit c337a17 into fukamachi:master Nov 22, 2025
1 check failed
@fukamachi
Copy link
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants