diff options
| author | Anup (OpenERP) <ach@tinyerp.com> | 2010-10-19 15:48:33 +0530 |
|---|---|---|
| committer | Anup (OpenERP) <ach@tinyerp.com> | 2010-10-19 15:48:33 +0530 |
| commit | c85cbf6db2cf2ce2dbabf0cb3b1194727278c143 (patch) | |
| tree | e7ce3501b3ef8668012d5abcf611c8f5d0839c2a /addons/fetchmail/fetchmail.py | |
| parent | 7604859423abfdf9e74b502298d57ea590d77636 (diff) | |
[FIX] fetchmail : SQL query corrected
bzr revid: ach@tinyerp.com-20101019101833-0fez00fq3ygkdklt
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: |
