summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/dialects/postgresql/base.py
diff options
context:
space:
mode:
authormike bayer <mike_mp@zzzcomputing.com>2020-10-30 15:14:18 +0000
committerGerrit Code Review <gerrit@bbpush.zzzcomputing.com>2020-10-30 15:14:18 +0000
commit841eb216644202567ebddfc0badc51a3a35e98c3 (patch)
tree40f930139e5a5fb707c3c3090bd2aabb455dd9cb /lib/sqlalchemy/dialects/postgresql/base.py
parent163a97c6d57db09d6405124dae9b877bc9629721 (diff)
parent9ddbd585a62ff1ad56e9ee6fef5898ced1932a88 (diff)
downloadsqlalchemy-841eb216644202567ebddfc0badc51a3a35e98c3.tar.gz
Merge "Apply underscore naming to several more operators"
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/base.py')
-rw-r--r--lib/sqlalchemy/dialects/postgresql/base.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/base.py b/lib/sqlalchemy/dialects/postgresql/base.py
index ea6921b2d..391361e23 100644
--- a/lib/sqlalchemy/dialects/postgresql/base.py
+++ b/lib/sqlalchemy/dialects/postgresql/base.py
@@ -1865,7 +1865,7 @@ class PGCompiler(compiler.SQLCompiler):
else ""
)
- def visit_notilike_op_binary(self, binary, operator, **kw):
+ def visit_not_ilike_op_binary(self, binary, operator, **kw):
escape = binary.modifiers.get("escape", None)
return "%s NOT ILIKE %s" % (
self.process(binary.left, **kw),
@@ -3850,10 +3850,10 @@ class PGDialect(default.DefaultDialect):
if col_flags & 0x01:
col_sorting += ("desc",)
if not (col_flags & 0x02):
- col_sorting += ("nullslast",)
+ col_sorting += ("nulls_last",)
else:
if col_flags & 0x02:
- col_sorting += ("nullsfirst",)
+ col_sorting += ("nulls_first",)
if col_sorting:
sorting[col_idx] = col_sorting
if sorting: