equal
deleted
inserted
replaced
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 |