File tree Expand file tree Collapse file tree
sqlmesh/core/engine_adapter Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ class BasePostgresEngineAdapter(EngineAdapter):
3030 COMMENT_CREATION_VIEW = CommentCreationView .COMMENT_COMMAND_ONLY
3131 SUPPORTS_QUERY_EXECUTION_TRACKING = True
3232 SUPPORTED_DROP_CASCADE_OBJECT_KINDS = ["SCHEMA" , "TABLE" , "VIEW" ]
33- CURRENT_SCHEMA_EXPRESSION = exp .func ("current_schema" )
3433
3534 def columns (
3635 self , table_name : TableName , include_pseudo_columns : bool = False
@@ -201,7 +200,7 @@ def _get_data_objects(
201200
202201 def _get_current_schema (self ) -> str :
203202 """Returns the current default schema for the connection."""
204- result = self .fetchone (exp .select (self . CURRENT_SCHEMA_EXPRESSION ))
203+ result = self .fetchone (exp .select (exp . func ( "current_schema" ) ))
205204 if result and result [0 ]:
206205 return result [0 ]
207206 return "public"
You can’t perform that action at this time.
0 commit comments