Revision 2314
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/sql_gen.py | ||
---|---|---|
53 | 53 |
if self.table != None: str_ += self.table.to_str(db)+'.' |
54 | 54 |
str_ += sql.esc_name(db, self.name) |
55 | 55 |
return str_ |
56 |
|
|
57 |
def to_Col(self): return self |
|
56 | 58 |
|
57 | 59 |
def as_Col(col, table=None): |
58 | 60 |
if col == None or isinstance(col, Code): return col |
... | ... | |
68 | 70 |
|
69 | 71 |
def to_str(self, db): |
70 | 72 |
return self.code.to_str(db)+' AS '+Col.to_str(self, db) |
73 |
|
|
74 |
def to_Col(self): return Col(self.name) |
|
71 | 75 |
|
72 | 76 |
##### Parameterized SQL code objects |
73 | 77 |
|
Also available in: Unified diff
sql_gen.py: Col: Added to_Col()