Adding upstream version 26.3.8.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
7ee28625fb
commit
b80c44840a
89 changed files with 59179 additions and 57645 deletions
|
@ -32,7 +32,7 @@ from sqlglot.dialects.dialect import (
|
|||
timestrtotime_sql,
|
||||
trim_sql,
|
||||
ts_or_ds_add_cast,
|
||||
str_position_sql,
|
||||
strposition_sql,
|
||||
)
|
||||
from sqlglot.helper import is_int, seq_get
|
||||
from sqlglot.parser import binary_range_parser
|
||||
|
@ -584,7 +584,7 @@ class Postgres(Dialect):
|
|||
]
|
||||
),
|
||||
exp.SHA2: sha256_sql,
|
||||
exp.StrPosition: str_position_sql,
|
||||
exp.StrPosition: lambda self, e: strposition_sql(self, e, func_name="POSITION"),
|
||||
exp.StrToDate: lambda self, e: self.func("TO_DATE", e.this, self.format_time(e)),
|
||||
exp.StrToTime: lambda self, e: self.func("TO_TIMESTAMP", e.this, self.format_time(e)),
|
||||
exp.StructExtract: struct_extract_sql,
|
||||
|
@ -611,6 +611,7 @@ class Postgres(Dialect):
|
|||
exp.UnixToTime: _unix_to_time_sql,
|
||||
exp.Levenshtein: _levenshtein_sql,
|
||||
}
|
||||
|
||||
TRANSFORMS.pop(exp.CommentColumnConstraint)
|
||||
|
||||
PROPERTIES_LOCATION = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue