diff options
| author | Vir (Open ERP) <vir@tinyerp.com> | 2010-10-20 10:20:40 +0530 |
|---|---|---|
| committer | Vir (Open ERP) <vir@tinyerp.com> | 2010-10-20 10:20:40 +0530 |
| commit | 720de8cf5dc9689a462f2a5ac36a862fe69da95a (patch) | |
| tree | 874e56ad41dcc7e7d5dac3c73f05d5a84bfe24e1 /addons/fetchmail/fetchmail.py | |
| parent | 1b419042533612c9d34cdaffe1873f3c92c526c5 (diff) | |
| parent | 0e34d1d2efc976813f0a24f2452df14715461d9e (diff) | |
[Merge]
bzr revid: vir@tinyerp.com-20101020045040-j4y2zre12tos1e9x
Diffstat (limited to 'addons/fetchmail/fetchmail.py')
| -rw-r--r-- | addons/fetchmail/fetchmail.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/fetchmail/fetchmail.py b/addons/fetchmail/fetchmail.py index 2147d774762..0f58419d1e1 100644 --- a/addons/fetchmail/fetchmail.py +++ b/addons/fetchmail/fetchmail.py @@ -73,7 +73,7 @@ class email_server(osv.osv): def check_duplicate(self, cr, uid, ids): # RFC *-* Why this limitation? why not in SQL constraint? vals = self.read(cr, uid, ids, ['user', 'password'])[0] - cr.execute("select count(id) from email_server where user='%s' and password='%s'", (vals['user'], vals['password'])) + cr.execute("select count(id) from email_server where user=%s and password=%s", (vals['user'], vals['password'])) res = cr.fetchone() if res: if res[0] > 1: |
