diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-12-24 07:49:59 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-12-24 07:49:59 +0000 |
commit | 43a52bccf5bf17217a2734f4680c00a102f82cac (patch) | |
tree | b745cdd5b462b8f0fbd9b54390f4676a48aae33a /sqlglot/dialects/postgres.py | |
parent | Releasing debian version 20.3.0-1. (diff) | |
download | sqlglot-43a52bccf5bf17217a2734f4680c00a102f82cac.tar.xz sqlglot-43a52bccf5bf17217a2734f4680c00a102f82cac.zip |
Merging upstream version 20.4.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'sqlglot/dialects/postgres.py')
-rw-r--r-- | sqlglot/dialects/postgres.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sqlglot/dialects/postgres.py b/sqlglot/dialects/postgres.py index bf65edf..e274877 100644 --- a/sqlglot/dialects/postgres.py +++ b/sqlglot/dialects/postgres.py @@ -445,6 +445,7 @@ class Postgres(Dialect): ), exp.Pivot: no_pivot_sql, exp.Pow: lambda self, e: self.binary(e, "^"), + exp.Rand: rename_func("RANDOM"), exp.RegexpLike: lambda self, e: self.binary(e, "~"), exp.RegexpILike: lambda self, e: self.binary(e, "~*"), exp.Select: transforms.preprocess( |