-
|
Hello! I am wondering if it's possible to use variables in the mysql2 query method? I can successfully run this in MySQL Workbench: set @custNum = 103;
SELECT * FROM customers WHERE customerNumber = @custNum;but when run via Related discussion: Budibase/budibase#7775 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
do you have |
Beta Was this translation helpful? Give feedback.
-
|
Some unit tests are using variables in the query, example: |
Beta Was this translation helpful? Give feedback.
do you have
multipleStatementsconnection flag enabled? See https://github.com/mysqljs/mysql#multiple-statement-queriesAt a protocol level there is nothing special in variables, query with variable in it is sent using the same COM_QUERY command, its just part of a query text