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

REPLACE INTO should properly emulate wpsqli_insert_id #108

Closed
mattbucci opened this issue Feb 27, 2024 · 0 comments
Closed

REPLACE INTO should properly emulate wpsqli_insert_id #108

mattbucci opened this issue Feb 27, 2024 · 0 comments

Comments

@mattbucci
Copy link
Collaborator

WP Version: 6.4.3
PG4WP Version: 3.3.1

Error:

REPLACE INTO emulation is correct, but 
wpsqli_insert_id() does not return the correct ID

Need to append RETURNING * to REPLACE rewrites

@mattbucci mattbucci changed the title REPLACE INTO should set pg4wp_last_insert REPLACE INTO should properly emulate wpsqli_insert_id Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant