Revision 2421
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/sql_gen.py | ||
---|---|---|
3 | 3 |
import operator |
4 | 4 |
|
5 | 5 |
import objects |
6 |
import sql |
|
7 | 6 |
import strings |
8 | 7 |
import util |
9 | 8 |
|
... | ... | |
12 | 11 |
class MockDb: |
13 | 12 |
def esc_value(self, value): return repr(value) |
14 | 13 |
|
15 |
def esc_name(self, name): return sql.esc_name_by_module(None, name)
|
|
14 |
def esc_name(self, name): return '"'+name+'"'
|
|
16 | 15 |
mockDb = MockDb() |
17 | 16 |
|
18 | 17 |
class Code(objects.BasicObject): |
Also available in: Unified diff
sql_gen.py: MockDb.esc_name(): Don't use sql.esc_name_by_module() to avoid circular dependency on sql module