Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assignment operator not working #58

Open
sumitsum opened this issue Jan 27, 2023 · 6 comments
Open

Assignment operator not working #58

sumitsum opened this issue Jan 27, 2023 · 6 comments

Comments

@sumitsum
Copy link

The following sql statement fails :

SELECT @amount := 10;

Error seen:
java.lang.IllegalStateException: Parameter at position 0 is not set

@rusher
Copy link
Collaborator

rusher commented Feb 8, 2023

right, https://jira.mariadb.org/browse/R2DBC-79 created to handle that

@Stenerson
Copy link

@rusher, I've used := for quite some time on complex update and select statements in MariaDB. It's also in their KB: https://mariadb.com/kb/en/assignment-operator/

Is there somewhere that points to this being invalid syntax in MariaDB?

@sumitsum
Copy link
Author

sumitsum commented Feb 8, 2023

@rusher MariaDB GitHub page claims that it can support MySQL as well, so I have been using it for MySQL DB as well. On MySQL DB the assignment operator works fine when run via console but fails when run via the driver which tells me that the problem is with the driver.

@rusher
Copy link
Collaborator

rusher commented Feb 8, 2023

yes, sorry, this is clearly a parser error that will be corrected soon. (I've initially mentionned that it was a wrong syntax and immediatly removed that part)

@sumitsum
Copy link
Author

sumitsum commented Feb 8, 2023

Thanks a lot @rusher . Will be waiting for the fix :)

@Stenerson
Copy link

Thanks @rusher! Your edit was too fast for me! 😉

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

No branches or pull requests

3 participants