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

Pivot does not work with Prepared Statement #1835

Open
arontsang opened this issue Aug 31, 2024 · 0 comments
Open

Pivot does not work with Prepared Statement #1835

arontsang opened this issue Aug 31, 2024 · 0 comments

Comments

@arontsang
Copy link

arontsang commented Aug 31, 2024

What happens?

throws Error: Invalid Error: Cannot prepare multiple statements at once!

Same issue as duckdb/duckdb#7720

To Reproduce

    const connection = await this.database.connect();

    await connection.query('CREATE TABLE Cities(Country VARCHAR, Name VARCHAR, Year INT, Population INT)')
    const statement = connection.prepare('PIVOT Cities ON Year USING SUM(Population);');

Browser/Environment:

Chrome

Device:

PC

DuckDB-Wasm Version:

1.28.1-dev106.0
1.28.0

DuckDB-Wasm Deployment:

n/a

Full Name:

Aron Tsang

Affiliation:

N/A

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

1 participant