Adding upstream version 25.29.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
dfac4c492f
commit
c61927f460
97 changed files with 64720 additions and 61752 deletions
|
@ -370,6 +370,7 @@ class Postgres(Dialect):
|
|||
FUNCTION_PARSERS = {
|
||||
**parser.Parser.FUNCTION_PARSERS,
|
||||
"DATE_PART": lambda self: self._parse_date_part(),
|
||||
"JSONB_EXISTS": lambda self: self._parse_jsonb_exists(),
|
||||
}
|
||||
|
||||
BITWISE = {
|
||||
|
@ -443,6 +444,14 @@ class Postgres(Dialect):
|
|||
def _parse_unique_key(self) -> t.Optional[exp.Expression]:
|
||||
return None
|
||||
|
||||
def _parse_jsonb_exists(self) -> exp.JSONBExists:
|
||||
return self.expression(
|
||||
exp.JSONBExists,
|
||||
this=self._parse_bitwise(),
|
||||
path=self._match(TokenType.COMMA)
|
||||
and self.dialect.to_json_path(self._parse_bitwise()),
|
||||
)
|
||||
|
||||
class Generator(generator.Generator):
|
||||
SINGLE_STRING_INTERVAL = True
|
||||
RENAME_TABLE_WITH_DB = False
|
||||
|
@ -462,6 +471,7 @@ class Postgres(Dialect):
|
|||
CAN_IMPLEMENT_ARRAY_ANY = True
|
||||
COPY_HAS_INTO_KEYWORD = False
|
||||
ARRAY_CONCAT_IS_VAR_LEN = False
|
||||
SUPPORTS_MEDIAN = False
|
||||
|
||||
SUPPORTED_JSON_PATH_PARTS = {
|
||||
exp.JSONPathKey,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue