summaryrefslogtreecommitdiff
path: root/odoo/tools/sql.py
diff options
context:
space:
mode:
Diffstat (limited to 'odoo/tools/sql.py')
-rw-r--r--odoo/tools/sql.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/odoo/tools/sql.py b/odoo/tools/sql.py
index c4e9a143a8e..563ed08c679 100644
--- a/odoo/tools/sql.py
+++ b/odoo/tools/sql.py
@@ -189,7 +189,6 @@ def drop_index(cr, indexname, tablename):
def drop_view_if_exists(cr, viewname):
cr.execute("DROP view IF EXISTS %s CASCADE" % (viewname,))
- cr.commit()
def escape_psql(to_escape):
return to_escape.replace('\\', r'\\').replace('%', '\%').replace('_', '\_')