Important
The SingleStore 9.1 release candidate (RC) gives you the opportunity to preview, evaluate, and provide feedback on new and upcoming features prior to their general availability. In the interim, SingleStore 9.0 is recommended for production workloads, which can later be upgraded to SingleStore 9.1.
ERROR 1064 ER_ PARSE_ ERROR: Unhandled exception Type: ER_ PARSE_ ERROR (1064)
Issue
Using the SET statement inside a stored procedure returns an error.
BEGINSET @@sql_mode = PIPES_AS_CONCAT;...<some_statement_that_uses_pipes_for_concatenation>
When you run this stored procedure for the first time, it returns a syntax error.
When a SingleStore query is run, its plan is generated and then compiled.SET queries, this delay in compiling means that the stored procedure will be generated as though the variable specified in the SET statement was not set.
On the first run, these queries are compiled, which causes the stored procedure to recompile.
Solution
Avoid using SET statements inside a stored procedure, especially for setting those variables that can potentially affect query execution.
Last modified: