@@ -341,10 +341,11 @@ def make_classes(self, into: dict[str, Any] | None = None) -> None:
341341 frame = inspect .currentframe ().f_back
342342 into = frame .f_locals
343343 del frame
344+ adapter = self .connection .adapter
344345 tables = [
345346 row [0 ]
346- for row in self .connection .query (self . connection . adapter .list_tables_sql (self .database ))
347- if lookup_class_name ("`{db}`.`{tab}`" . format ( db = self .database , tab = row [0 ]), into , 0 ) is None
347+ for row in self .connection .query (adapter .list_tables_sql (self .database ))
348+ if lookup_class_name (adapter . make_full_table_name ( self .database , row [0 ]), into , 0 ) is None
348349 ]
349350 master_classes = (Lookup , Manual , Imported , Computed )
350351 part_tables = []
@@ -502,7 +503,7 @@ def jobs(self) -> list[Job]:
502503 # Iterate over auto-populated tables and check if their job table exists
503504 for table_name in self .list_tables ():
504505 adapter = self .connection .adapter
505- full_name = f" { adapter .quote_identifier (self .database ) } ." f" { adapter . quote_identifier ( table_name )} "
506+ full_name = adapter .make_full_table_name (self .database , table_name )
506507 table = FreeTable (self .connection , full_name )
507508 tier = _get_tier (table .full_table_name )
508509 if tier in (Computed , Imported ):
@@ -602,8 +603,7 @@ def get_table(self, name: str) -> FreeTable:
602603 if table_name is None :
603604 raise DataJointError (f"Table `{ name } ` does not exist in schema `{ self .database } `." )
604605
605- adapter = self .connection .adapter
606- full_name = f"{ adapter .quote_identifier (self .database )} .{ adapter .quote_identifier (table_name )} "
606+ full_name = self .connection .adapter .make_full_table_name (self .database , table_name )
607607 return FreeTable (self .connection , full_name )
608608
609609 def __getitem__ (self , name : str ) -> FreeTable :
0 commit comments