Skip to content

Commit

Permalink
enable multiple_insert by default
Browse files Browse the repository at this point in the history
  • Loading branch information
anandology committed Dec 10, 2008
1 parent 0f5c6e0 commit ae260eb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions web/db.py
Expand Up @@ -852,9 +852,8 @@ def __init__(self, **keywords):
keywords['database'] = keywords.pop('db')
self.dbname = "postgres"
self.paramstyle = db_module.paramstyle
self.supports_multiple_insert = True

DB.__init__(self, db_module, keywords)
self.supports_multiple_insert = True

def get_db_module(self):
try:
Expand Down Expand Up @@ -897,8 +896,8 @@ def __init__(self, **keywords):

self.paramstyle = db.paramstyle = 'pyformat' # it's both, like psycopg
self.dbname = "mysql"
self.supports_multiple_insert = True
DB.__init__(self, db, keywords)
self.supports_multiple_insert = True

def _process_insert_query(self, query, tablename, seqname):
return query, SQLQuery('SELECT last_insert_id();')
Expand Down

0 comments on commit ae260eb

Please sign in to comment.