[dataimport] use sql shortcut
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 28 Jan 2016 16:08:08 +0100
changeset 11323 e9120da559f5
parent 11322 21316020eae3
child 11324 4b530be87d36
[dataimport] use sql shortcut
cubicweb/dataimport/massive_store.py
--- a/cubicweb/dataimport/massive_store.py	Thu Jan 28 18:16:47 2016 +0100
+++ b/cubicweb/dataimport/massive_store.py	Thu Jan 28 16:08:08 2016 +0100
@@ -263,7 +263,7 @@
             self._dbh.drop_indexes(tablename)
 
     def restart_eid_sequence(self, start_eid):
-        self._cnx.system_sql(self._cnx.repo.system_source.dbhelper.sql_restart_numrange(
+        self.sql(self._cnx.repo.system_source.dbhelper.sql_restart_numrange(
             'entities_id_seq', initial_value=start_eid))
         self._cnx.commit()