def createStatements(self):
        statements = []
        columnSQLStmts = []
        for colName, colType, indexMD in self.columns:
            if isinstance(colType, list):
                if self.declareEnums:
                    # This is disabled until PostgreSQL grows enums (8.3)
                    if False:
                      enumName = '%s_enum' % (colName,)
                      statements.append(
                        'CREATE TYPE %s AS ENUM (%s)' %
                        (enumName, ', '.join(
                          ["'%s'" % item for item in colType])))
                    enumName = 'char'
                    columnSQLStmts.append("\t%s %s not NULL" %
                                            (colName, enumName))
                else:
                    columnSQLStmts.append("\t%s\t%s not NULL" %
                      (colName, 'enum(%s)' % ', '.join(
                        [item % "'%s'" for item in colType])))
            else:
                columnSQLStmts.append("\t%s\t%s not NULL" %
                                        (colName, colType))
        
        statements.append(CREATE_HASH_TABLE % (
            self,
            ',\n'.join(columnSQLStmts),
            self.engine))
        return statements
dataset/ETHPy150Open RDFLib/rdfextras/rdfextras/store/FOPLRelationalModel/RelationalHash.py/RelationalHash.createStatements/swapped operands of `%`