changeset 11:22c16a632909

add single-quote to ignored characters in sqlName.
author casties
date Thu, 23 Jun 2011 11:16:19 +0200
parents 283c01ebe96e
children 09882d5a3989
files DBInterface.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/DBInterface.py	Wed Jun 15 16:59:43 2011 +0200
+++ b/DBInterface.py	Thu Jun 23 11:16:19 2011 +0200
@@ -59,6 +59,8 @@
     if s is None:
         return ""
     
+    # remove '
+    s = s.replace("'","")
     # all else -> "_"
     s = re.sub('[^A-Za-z0-9_'+more+']','_',s)
     if lc: