Adding upstream version 6.1.1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
527597d2af
commit
71430b22d0
61 changed files with 1844 additions and 1555 deletions
|
@ -51,6 +51,14 @@ class Oracle(Dialect):
|
|||
sep="",
|
||||
)
|
||||
|
||||
def alias_sql(self, expression):
|
||||
if isinstance(expression.this, exp.Table):
|
||||
to_sql = self.sql(expression, "alias")
|
||||
# oracle does not allow "AS" between table and alias
|
||||
to_sql = f" {to_sql}" if to_sql else ""
|
||||
return f"{self.sql(expression, 'this')}{to_sql}"
|
||||
return super().alias_sql(expression)
|
||||
|
||||
def offset_sql(self, expression):
|
||||
return f"{super().offset_sql(expression)} ROWS"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue