Revision 3088
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/sql_gen.py | ||
---|---|---|
164 | 164 |
|
165 | 165 |
def to_str(self, db): |
166 | 166 |
str_ = '' |
167 |
if self.schema != None: str_ += db.esc_name(self.schema)+'.'
|
|
168 |
str_ += db.esc_name(self.name)
|
|
167 |
if self.schema != None: str_ += as_Name(self.schema).to_str(db)+'.'
|
|
168 |
str_ += as_Name(self.name).to_str(db)
|
|
169 | 169 |
return str_ |
170 | 170 |
|
171 | 171 |
def to_Table(self): return self |
... | ... | |
235 | 235 |
self.table = table |
236 | 236 |
|
237 | 237 |
def to_str(self, db, for_str=False): |
238 |
str_ = db.esc_name(self.name)
|
|
238 |
str_ = as_Name(self.name).to_str(db)
|
|
239 | 239 |
if for_str: str_ = clean_name(str_) |
240 | 240 |
if self.table != None: |
241 | 241 |
table = self.table.to_Table() |
Also available in: Unified diff
sql_gen.py: Use new as_Name() instead of db.esc_name()