safety-analytics-mapping / pysqldb3

Python3 version of pysqldb portion of ris library
1 stars 1 forks source link

inherits from is failing #66

Closed shostetter closed 4 months ago

shostetter commented 4 months ago

pg = pysqldb.DbConnect(type='pg', server='dotrhsippgsqlal', database='sip_portal')

ris = pysqldb.DbConnect(server='dotdevrhpgsql01', database='ris2', inherits_from=pg)

File C:\Program Files\Python311\Lib\site-packages\pysqldb3\util.py:96, in get_unique_table_schema_string(tbl_str, db_type) 94 if not tbl_str: 95 return None ---> 96 if db_type.upper() == PG: 97 if '"' not in tbl_str: 98 # If no "", lower case 99 return tbl_str.lower()

AttributeError: 'NoneType' object has no attribute 'upper'