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

Bun SQL postgres error: prepared statement already exists #16844

Closed
TheGP opened this issue Jan 28, 2025 · 4 comments
Closed

Bun SQL postgres error: prepared statement already exists #16844

TheGP opened this issue Jan 28, 2025 · 4 comments
Labels
bug Something isn't working needs triage

Comments

@TheGP
Copy link

TheGP commented Jan 28, 2025

What version of Bun is running?

1.1.36

What platform is your computer?

Ubuntu

What steps can reproduce the bug?

Not sure, it looks like sending the same request with different params like. It happened during run time, cant repeat it during test.

What is the expected behavior?

No response

What do you see instead?

Error: SyntaxError: Postgres error occurred
ERROR
ERROR
42P05
prepared statement "
		SELECT
			*
		FROM 
			accounts
		WHERE
			type = $1
		LIMIT $3
	.string.int4.int4" already exists
prepare.c
409
StorePreparedStatement

Additional information

No response

@TheGP TheGP added bug Something isn't working needs triage labels Jan 28, 2025
@TheGP
Copy link
Author

TheGP commented Jan 29, 2025

I switched to postgres package, the problem dissapeared

@cirospaciari
Copy link
Member

This issue was already fixed, can you try to upgrade to v1.2.1? if you are still running into this in the new version please reopen.

@TheGP
Copy link
Author

TheGP commented Jan 29, 2025

I did and it was the same. Where it was fixed?

@cirospaciari
Copy link
Member

If you are still encountering this issue please reopen with a reproduction code and bun --revision result. This was fixed before 1.2.0 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage
Projects
None yet
Development

No branches or pull requests

2 participants