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

fix: Making query/2 actually use query. query/3 alias prepared statement #34

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mpope9
Copy link

@mpope9 mpope9 commented Jan 21, 2025

This is a WIP fix for #33

One issue that I see that I am not sure how to fix (or what is causing it?). Many tests are failing with:

iex(1)> {:ok, db} = Duckdbex.open()
{:ok, #Reference<0.3897877700.3279814681.175777>}
iex(2)> {:ok, conn} = Duckdbex.connection(db)
{:ok, #Reference<0.3897877700.3279814681.175785>}
iex(3)> {:ok, result} = Duckdbex.query(conn, "CREATE TABLE table1(col1 TIMESTAMP);")
** (MatchError) no match of right hand side value: {:error, "Parser Error: syntax error at or near \"xir_ۉU\"\nLINE 1: CREATE TABLE table1(col1 TIMESTAMP);xir_ۉU\n                                            ^"}
    (stdlib 6.0.1) erl_eval.erl:652: :erl_eval.expr/6
    iex:3: (file)

Also interestingly only a single resultset is returned for the MSR, so maybe this is not completely finished

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

Successfully merging this pull request may close these issues.

1 participant