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

an error of SQL syntax error #163

Open
hyeinkwon798 opened this issue Sep 25, 2021 · 1 comment
Open

an error of SQL syntax error #163

hyeinkwon798 opened this issue Sep 25, 2021 · 1 comment

Comments

@hyeinkwon798
Copy link

Hi
I'm trying to use odbc driver to connect Altibase using Golang
I have installed unixODBC and go get this odbc driver
Finally there is no error with the connection between db and golang using sql.Open( ) but the test dosen't work having error below

SQLPrepare: {42000} SQL syntax error
line 1: parse error
select * from TEST

I have used
query := fmt.Sprintf("select * from %s", "TEST" )
rows, err := adb.Query("query)

there is nothing wrong with the query (I have checked in the command)

Need some help! thank you

@alexbrainman
Copy link
Owner

@hyeinkwon798 the error message you provided is coming from ODBC driver code not from github.com/alexbrainman/odbc. I don't know why the driver complains. It is hard to guess without me trying your code. And I don't plan to try, because I don't use Altibase myself. So you have to try and debug this yourself.

Alex

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

2 participants