From: Jason Kirtland Date: Tue, 10 Jul 2007 21:53:03 +0000 (+0000) Subject: Try to only convert :bind params and leave colons in text literals alone X-Git-Tag: rel_0_4_6~124 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a07f1aaeeef0c4fa6a76659a367bf92654dd9b8;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Try to only convert :bind params and leave colons in text literals alone --- diff --git a/lib/sqlalchemy/ansisql.py b/lib/sqlalchemy/ansisql.py index d2e779a7e6..188063a82d 100644 --- a/lib/sqlalchemy/ansisql.py +++ b/lib/sqlalchemy/ansisql.py @@ -40,6 +40,9 @@ RESERVED_WORDS = util.Set(['all', 'analyse', 'analyze', 'and', 'any', 'array', LEGAL_CHARACTERS = util.Set(string.ascii_lowercase + string.ascii_uppercase + string.digits + '_$') ILLEGAL_INITIAL_CHARACTERS = util.Set(string.digits + '$') +BIND_PARAMS = re.compile(r'(?