possibly fixed issue 1570:Recent web2py does no longer support table-aliasing, thanks Dominic

This commit is contained in:
mdipierro
2013-07-01 05:51:57 -05:00
parent ad8c1165b7
commit 1e8c9e89f3
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.6.0-development+timestamp.2013.06.30.11.28.52
Version 2.6.0-development+timestamp.2013.07.01.05.51.11
+4 -4
View File
@@ -8485,10 +8485,10 @@ class Table(object):
def __str__(self):
if self._ot is not None:
return self._db._adapter.QUOTE_TEMPLATE % self._ot
#if 'Oracle' in str(type(self._db._adapter)): # <<< patch
# return '%s %s' % (self._ot, self._tablename) # <<< patch
#return '%s AS %s' % (self._ot, self._tablename)
ot = self._db._adapter.QUOTE_TEMPLATE % self._ot
if 'Oracle' in str(type(self._db._adapter)):
return '%s %s' % (ot, self._tablename)
return '%s AS %s' % (ot, self._tablename)
return self._tablename
def _drop(self, mode = ''):