~ubuntu-branches/ubuntu/wily/bandit/wily-proposed

« back to all changes in this revision

Viewing changes to examples/sql_statements_with_sqlalchemy.py

  • Committer: Package Import Robot
  • Author(s): Dave Walker (Daviey)
  • Date: 2015-07-22 09:01:39 UTC
  • Revision ID: package-import@ubuntu.com-20150722090139-fl0nluy0x8m9ctx4
Tags: upstream-0.12.0
ImportĀ upstreamĀ versionĀ 0.12.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import sqlalchemy
 
2
 
 
3
query = "SELECT * FROM foo WHERE id = '%s'" % identifier
 
4
query = "INSERT INTO foo VALUES ('a', 'b', '%s')" % value
 
5
query = "DELETE FROM foo WHERE id = '%s'" % identifier
 
6
query = "UPDATE foo SET value = 'b' WHERE id = '%s'" % identifier