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

Cannot connect tibero database with go lang #158

Open
ChungHyup opened this issue Jun 3, 2021 · 8 comments
Open

Cannot connect tibero database with go lang #158

ChungHyup opened this issue Jun 3, 2021 · 8 comments

Comments

@ChungHyup
Copy link

I'm using Tibero 6 Database for my project and I've already configured unixODBC.

and I can connect with isql / iodbctest

# Works well! I can query.
$ isql Tibero6
$ iodbctest "DSN=Tibero6"

But I got error when I connect db with go odbc lib.

  # main.go
  db, err := sql.Open("odbc", "DSN=Tibero6")
  #Stdout
2021/06/03 14:02:42 SQLDriverConnect: {IM002} [unixODBC][Driver Manager]Data source name not found, and no default driver specified
exit status 1

what can I check to fix this issue?

@alexbrainman
Copy link
Owner

I have never used Tibero Database myself. So I do not know.

2021/06/03 14:02:42 SQLDriverConnect: {IM002} [unixODBC][Driver Manager]Data source name not found, and no default driver specified
e

Looks like you connection string "DSN=Tibero6" is wrong. You should ask someone who uses that database. Or ask their support.

Alex

@reiwav
Copy link

reiwav commented Sep 2, 2021

I runing in windows with odbc vs Tibero. But, when running in linux, source not working. Error SQLDriverConnect: {I} [unixODBC]. Please check

@alexbrainman
Copy link
Owner

I runing in windows with odbc vs Tibero. But, when running in linux, source not working. Error SQLDriverConnect: {I} [unixODBC]. Please check

@reiwav if you are talking to me, then I don't understand what you are saying. Please, try again.

Thank you.

Alex

@reiwav
Copy link

reiwav commented Sep 4, 2021 via email

@alexbrainman
Copy link
Owner

@reiwav

Thanks for explaining.

I am glad this package works for you on Windows.

Unfortunately, like I said above, I don't use Tibero database. You cannot expect me to install and learn all things about Tibero database to be able to help you here. You have to debug this problem yourself.

Alex

@reiwav
Copy link

reiwav commented Sep 4, 2021 via email

@reiwav
Copy link

reiwav commented Sep 10, 2021

I tried using the for_issue_88 branch, and it works with tibero. But when using order by, there are no rows returned. Did you change anything from the master branch?

@alexbrainman
Copy link
Owner

I tried using the for_issue_88 branch, and it works with tibero. But when using order by, there are no rows returned. Did you change anything from the master branch?

I don't understand your question. Yes for_issue_88 and master branch codes are different. If that is what you are asking.

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

3 participants