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

PostgresSQL Select IN concatenation with date fail #10

Open
simone opened this issue Mar 18, 2012 · 0 comments
Open

PostgresSQL Select IN concatenation with date fail #10

simone opened this issue Mar 18, 2012 · 0 comments

Comments

@simone
Copy link
Owner

simone commented Mar 18, 2012

The output dlelete query seem to be ok, but I think the raprpesentation string of date is different from the database quoteliteral concatenation of the datetime field.

DELETE FROM "composite_basic_article" WHERE quote_literal("headline")||'#'||quote_literal("pub_date") IN (E'''Fourth article''#''2005-07-31 00:00:00''',E'''Default headline''#''2005-07-31 00:00:00''',E'''Article 7''#''2005-07-31 12:30:00''',E'''Article 6''#''2005-07-31 00:00:00''',E'''Area man programs in Python''#''2005-07-28 00:00:00''')

infact this don't delete the right articles

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