File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
sqlmesh/core/engine_adapter Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ class BasePostgresEngineAdapter(EngineAdapter):
2626 COMMENT_CREATION_VIEW = CommentCreationView .COMMENT_COMMAND_ONLY
2727 SUPPORTS_QUERY_EXECUTION_TRACKING = True
2828 SUPPORTED_DROP_CASCADE_OBJECT_KINDS = ["SCHEMA" , "TABLE" , "VIEW" ]
29- CURRENT_SCHEMA_EXPRESSION = exp .func ("current_schema" )
3029
3130 def columns (
3231 self , table_name : TableName , include_pseudo_columns : bool = False
@@ -193,7 +192,7 @@ def _get_data_objects(
193192
194193 def _get_current_schema (self ) -> str :
195194 """Returns the current default schema for the connection."""
196- result = self .fetchone (exp .select (self . CURRENT_SCHEMA_EXPRESSION ))
195+ result = self .fetchone (exp .select (exp . func ( "current_schema" ) ))
197196 if result and result [0 ]:
198197 return result [0 ]
199198 return "public"
You can’t perform that action at this time.
0 commit comments