# there's an insert trigger on the table.
" OR tables.table_type = 'VIEW')")
self.cur.execute(sql, (table, schema))
- return self.cur.fetchone() != None
+ return self.cur.fetchone() is not None
def factory(self, ue):
'''Make a db loader function from an UploadEngine.
for col_name in data.headers.tuples:
# Check that colum name exists
self.cur.execute(column_sql, (table, schema, col_name))
- if self.cur.fetchone() == None:
+ if self.cur.fetchone() is None:
bad_cols.append(col_name)
else:
# Add column to sql statement