server/sqlutils.py
branchtls-sprint
changeset 1132 96752791c2b6
parent 1026 4c097dbaf560
child 1263 01152fffd593
equal deleted inserted replaced
1131:544609e83317 1132:96752791c2b6
    17 from indexer import get_indexer
    17 from indexer import get_indexer
    18 
    18 
    19 from cubicweb import Binary, ConfigurationError
    19 from cubicweb import Binary, ConfigurationError
    20 from cubicweb.common.uilib import remove_html_tags
    20 from cubicweb.common.uilib import remove_html_tags
    21 from cubicweb.server import SQL_CONNECT_HOOKS
    21 from cubicweb.server import SQL_CONNECT_HOOKS
    22 from cubicweb.server.utils import crypt_password, cartesian_product
    22 from cubicweb.server.utils import crypt_password
    23 
    23 
    24 db.USE_MX_DATETIME = False
    24 db.USE_MX_DATETIME = False
    25 
    25 
    26 def sqlexec(sqlstmts, cursor_or_execute, withpb=True, delimiter=';'):
    26 def sqlexec(sqlstmts, cursor_or_execute, withpb=True, delimiter=';'):
    27     """execute sql statements ignoring DROP/ CREATE GROUP or USER statements
    27     """execute sql statements ignoring DROP/ CREATE GROUP or USER statements