From 4f8a560d6f02c60ac85e73ad90d2ffb4a183d9f0 Mon Sep 17 00:00:00 2001 From: Jason Kirtland Date: Thu, 9 Aug 2007 22:31:44 +0000 Subject: [PATCH] Fixed detection of internal '$' characters in :bind$params (Applied patch in [ticket:719], thanks!) --- CHANGES | 1 + lib/sqlalchemy/ansisql.py | 2 +- test/sql/query.py | 20 +++++++++++++++++++- 3 files changed, 21 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 621ea0db09..1d952c8d70 100644 --- a/CHANGES +++ b/CHANGES @@ -2,6 +2,7 @@ - sql - tweak DISTINCT precedence for clauses like `func.count(t.c.col.distinct())` + - Fixed detection of internal '$' characters in :bind$params [ticket:719] - orm - added a check for joining from A->B using join(), along two different m2m tables. this raises an error in 0.3 but is diff --git a/lib/sqlalchemy/ansisql.py b/lib/sqlalchemy/ansisql.py index 9994d52889..e7146fb3d9 100644 --- a/lib/sqlalchemy/ansisql.py +++ b/lib/sqlalchemy/ansisql.py @@ -170,7 +170,7 @@ class ANSICompiler(sql.Compiled): # this re will search for params like :param # it has a negative lookbehind for an extra ':' so that it doesnt match # postgres '::text' tokens - match = re.compile(r'(?