File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ BIND_PATTERN = r'(?<!"\:)(?<=\:)\s*("[^\"]*"|[^\W\d_][\w\$#]*|\d+)'
4343# pattern used for detecting a DML returning clause; bind variables in the
4444# first group are input variables; bind variables in the second group are
4545# output only variables
46- DML_RETURNING_PATTERN = r ' (?si) ( \s + RETURNING\s + [\s\S ]+ \s + INTO\s + ) ( . *? $ ) '
46+ DML_RETURNING_PATTERN = r ' (?si) ( [ ) \s ] RETURNING\s + [\s\S ]+ \s + INTO\s + ) ( . *? $ ) '
4747
4848cdef class BindInfo:
4949
Original file line number Diff line number Diff line change @@ -212,8 +212,7 @@ def test_1607_insert_and_return_object(self):
212212 typename = "UDT_OBJECT" )
213213 self .cursor .execute ("""
214214 insert into TestObjects (IntCol, ObjectCol)
215- values (4, :obj)
216- returning ObjectCol into :outObj""" ,
215+ values (4, :obj)returning ObjectCol into :outObj""" ,
217216 obj = obj , outObj = out_var )
218217 result , = out_var .getvalue ()
219218 self .assertEqual (result .STRINGVALUE , string_value )
You can’t perform that action at this time.
0 commit comments