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

Bug: Integration With Golang Not Working #179

Open
2 tasks done
wojciechpietrzak opened this issue Nov 6, 2024 · 1 comment
Open
2 tasks done

Bug: Integration With Golang Not Working #179

wojciechpietrzak opened this issue Nov 6, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@wojciechpietrzak
Copy link

wojciechpietrzak commented Nov 6, 2024

Describe the bug

dbConn.Query("UPDATE my_table SET flag = false WHERE some_int = 10", map[string]interface{}{}) works fine.

But

dbConn.Query("UPDATE my_table SET flag = false WHERE some_int >= 10", map[string]interface{}{})
dbConn.Query("UPDATE my_table SET flag = false WHERE some_int <= 10", map[string]interface{}{})
dbConn.Query("UPDATE my_table SET flag = false WHERE some_int > 10", map[string]interface{}{})
dbConn.Query("UPDATE my_table SET flag = false WHERE some_int < 10", map[string]interface{}{})

are all hanging until GoLang client terminates them after about 240 seconds of waiting.

Similar issues happen with SELECT queries. Comparing with integers using = is ok, comparing with inequality operators never works. It doesn't matter whether the argument is passed directly or mapped through the second param of Query().

Steps to reproduce

Run SurrealDB server 2.0.3, connect to it using the GoLang library, select namespace and database with Use(), and try to run the queries above on a non-existent table

Expected behaviour

I expected that all of the queries will successfully return in about no time, taking into account that they were all executed on a non-existing table

SurrealDB version

2.0.4 for linux on x86_64

Contact Details

[email protected]

Is there an existing issue for this?

  • I have searched the existing issues

Code of Conduct

  • I agree to follow this project's Code of Conduct
@wojciechpietrzak wojciechpietrzak added the bug Something isn't working label Nov 6, 2024
@tobiemh
Copy link
Member

tobiemh commented Nov 8, 2024

Hi @wojciechpietrzak which version of the Golang library are you using?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants