sqlx icon indicating copy to clipboard operation
sqlx copied to clipboard

NamedQuery doesn't correctly parse queries involving sql variables

Open jeetjitsu opened this issue 8 years ago • 1 comments

compileNamedQuery function does not correctly compile queries which involve sql variables. e.g

SELECT @name := "name", :age, :first, :last;
SELECT @name := "name", ?, ?, ?;
SELECT @name := "name", $1, $2, $3;
SELECT @name := "name", :age, :first, :last;

This affects the NamedQuery & NamedQueryExec functionality provided by the library as far as I can tell.

jeetjitsu avatar Sep 28 '18 10:09 jeetjitsu

thank you for the patch :bowing_man:

jmoiron avatar Oct 16 '18 03:10 jmoiron