server/serverctl.py
changeset 2417 18a14c23413c
parent 2107 6c4a4c514ac2
child 2446 440cb4ea7e5c
equal deleted inserted replaced
2402:321a87654988 2417:18a14c23413c
    72 
    72 
    73 def _db_sys_cnx(source, what, db=None, user=None, verbose=True):
    73 def _db_sys_cnx(source, what, db=None, user=None, verbose=True):
    74     """return a connection on the RDMS system table (to create/drop a user
    74     """return a connection on the RDMS system table (to create/drop a user
    75     or a database
    75     or a database
    76     """
    76     """
       
    77     import logilab.common as lgp
    77     from logilab.common.adbh import get_adv_func_helper
    78     from logilab.common.adbh import get_adv_func_helper
       
    79     lgp.USE_MX_DATETIME = False
    78     special_privs = ''
    80     special_privs = ''
    79     driver = source['db-driver']
    81     driver = source['db-driver']
    80     helper = get_adv_func_helper(driver)
    82     helper = get_adv_func_helper(driver)
    81     if user is not None and helper.users_support:
    83     if user is not None and helper.users_support:
    82         special_privs += '%s USER' % what
    84         special_privs += '%s USER' % what