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

params argument in DBInterface.execute argument not option. #317

Closed
justinjjlee opened this issue Jan 13, 2021 · 1 comment
Closed

params argument in DBInterface.execute argument not option. #317

justinjjlee opened this issue Jan 13, 2021 · 1 comment

Comments

@justinjjlee
Copy link

With ODBC connection, I am trying to run

conn = DBInterface.connect(ODBC.Connection, "Driver={SQL Server};SERVER=10.20.20.34;USER=root;PWD=")

DBInterface.execute(conn, sql) |> DataFrame

Seems like I am getting the error for v.1.0.0 and v.1.0.4.

ERROR: MethodError: execute(::ODBC.Connection, ::String, ::Tuple{}) is ambiguous. Candidates:
  execute(conn::ODBC.Connection, sql::AbstractString, params; debug, kw...)

What argument should I put for params? I was not able to see any in the documentation, and the following

DBInterface.execute(conn, sql, params = ()) |> DataFrame

leads to,

ERROR: MethodError: no method matching ODBC.Cursor(::ODBC.API.Handle; debug=false, params=())
Closest candidates are:
  ODBC.Cursor(::Any; iterate_rows, ignore_driver_row_count, normalizenames, debug) at C:\Users\.julia\packages\ODBC\qhwMX\src\dbinterface.jl:215 got unsupported keyword argument "params"
@quinnj
Copy link
Member

quinnj commented Jan 14, 2021

I think this should be fixed by JuliaDatabases/DBInterface.jl#33; there was a change released yesterday that caused this and I've made a bugfix release tonight to rectify

@quinnj quinnj closed this as completed Jan 14, 2021
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