fixed some issues in dal.py and sqlhtml.py thanks Michele
This commit is contained in:
+1
-1
@@ -1930,7 +1930,7 @@ class PostgreSQLAdapter(BaseAdapter):
|
||||
def __init__(self,db,uri,pool_size=0,folder=None,db_codec ='UTF-8',
|
||||
credential_decoder=lambda x:x, driver_args={},
|
||||
adapter_args={}):
|
||||
if not self.drivers.get('psycopg2') and not self.drivers.get('psycopg2'):
|
||||
if not self.drivers.get('psycopg2') and not self.drivers.get('pg8000'):
|
||||
raise RuntimeError, "Unable to import any drivers (psycopg2 or pg8000)"
|
||||
self.db = db
|
||||
self.dbengine = "postgres"
|
||||
|
||||
Reference in New Issue
Block a user