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

too many arguments in call to _Cfunc_duckdb_nparams #9

Closed
liubaochuan opened this issue Nov 25, 2021 · 4 comments
Closed

too many arguments in call to _Cfunc_duckdb_nparams #9

liubaochuan opened this issue Nov 25, 2021 · 4 comments

Comments

@liubaochuan
Copy link

github.com/marcboeker/go-duckdb

../../go/pkg/mod/github.com/marcboeker/go-duckdb@v0.0.0-20211122095031-ceaaaf0726f1/statement.go:41:18: too many arguments in call to _Cfunc_duckdb_nparams
have (_Ctype_duckdb_prepared_statement, *_Ctype_ulonglong)
want (_Ctype_duckdb_prepared_statement)
make: *** [build] Error 2

platform :macos
duckdb version: 0.3.0

@liubaochuan
Copy link
Author

How to compile the library(.a file) into an executable file?

@liubaochuan
Copy link
Author

stmt, err := db.Prepare("SELECT * FROM users WHERE age > ?")
check(err)
rows, err := stmt.Query(1)
check(err)

The execution result error: panic: sql: expected 0 arguments, got 1

@marcboeker
Copy link
Owner

Sorry for my late response, but I'm not able to debug this at the moment. I'll have a look at it, once I have more spare time.

@marcboeker
Copy link
Owner

Sorry for taking so long. I think it is fixed now. Please try it again with the latest version of DuckDB from their master.

k-anshul added a commit to rilldata/go-duckdb that referenced this issue Nov 30, 2023
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