Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

stop Python-interpolating payday.sql #3785

Merged
merged 1 commit into from
Sep 14, 2015
Merged

stop Python-interpolating payday.sql #3785

merged 1 commit into from
Sep 14, 2015

Conversation

chadwhitacre
Copy link
Contributor

Using Python string interpolation on the payday.sql file introduces complexity that leads to bugs. The one I hit was using % for interpolation in a Postgres RAISES clause: it would've had to be escaped to make it through the Python interpolation.

I cherry-picked this from 364d066 in #3653.

See reference in #3780 (comment).

Using Python string interpolation on the payday.sql file introduces
complexity that leads to bugs. The one I hit was using '%' for
interpolation in a Postgres RAISES clause: it would've had to be escaped
to make it through the Python interpolation.
@chadwhitacre chadwhitacre added this to the Balanced Shutdown milestone Sep 14, 2015
@chadwhitacre
Copy link
Contributor Author

Ready for review @rorepo @rohitpaulk et al.

@rohitpaulk
Copy link
Contributor

Code looks good, waiting for green...

rohitpaulk added a commit that referenced this pull request Sep 14, 2015
stop Python-interpolating payday.sql
@rohitpaulk rohitpaulk merged commit 4a6d654 into master Sep 14, 2015
@rohitpaulk rohitpaulk deleted the no-interpolation branch September 14, 2015 19:35
@chadwhitacre
Copy link
Contributor Author

Thanks @rohitpaulk! 💃

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants