thatandromeda / shortimer

a webapp for code4lib jobs
http://jobs.code4lib.org
0 stars 0 forks source link

percent literals in raw SQL #23

Open thatandromeda opened 9 years ago

thatandromeda commented 9 years ago

"When you are running raw SQL queries through the cursor.execute method, the rule about doubling percent literals (%) inside the query has been unified. Past behavior depended on the database backend. Now, across all backends, you only need to double literal percent characters if you are also providing replacement parameters. For example:"

I sure hope we don't care, but just in case we do....