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

Correct wrong format strings #155

Closed
rafatower opened this issue Sep 17, 2015 · 2 comments
Closed

Correct wrong format strings #155

rafatower opened this issue Sep 17, 2015 · 2 comments

Comments

@rafatower
Copy link
Contributor

contrib_regression=# select format('CREATE SEQUENCE %s START WITH %d', 'hola', 3+2);
ERROR:  unrecognized conversion type specifier "d"
contrib_regression=# select format('CREATE SEQUENCE %s START WITH %i', 'hola', 3+2);
ERROR:  unrecognized conversion type specifier "i"
contrib_regression=# select format('CREATE SEQUENCE %s START WITH %s', 'hola', 3+2);

This affects current code: https://github.com/CartoDB/cartodb-postgresql/blob/master/scripts-available/CDB_CartodbfyTable.sql#L168

@rafatower
Copy link
Contributor Author

@rafatower
Copy link
Contributor Author

Also this ticket needs a test case to force the execution path through the faulty code.

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

2 participants