Revision 2367
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/sql_gen.py | ||
---|---|---|
10 | 10 |
##### SQL code objects |
11 | 11 |
|
12 | 12 |
class MockDb: |
13 |
def esc_value(self, value): return strings.ustr(value)
|
|
13 |
def esc_value(self, value): return repr(value)
|
|
14 | 14 |
|
15 | 15 |
def esc_name(self, name): return name |
16 | 16 |
mockDb = MockDb() |
Also available in: Unified diff
sql_gen.py: MockDb.esc_value(): Use repr() instead of strings.ustr() so the quotes around the value are included