Closed GoogleCodeExporter closed 9 years ago
I have to withdraw this defect-report. I was testing this with a
non-parameterized test-query which is smartly optimized away. In 'real life'
queries this works as expected.
Original comment by rbrt8...@gmail.com
on 24 Jan 2014 at 11:22
Thanks for the follow up comment! Saved me some time :)
Good luck and I'm impressed that you were analyzing the logs in the first place.
Original comment by mich...@kleehammer.com
on 3 Feb 2014 at 12:53
Actually there's a layer more to this:
I was stumped to find out sql server native driver fakes the preparation
and just internally caches the sql text itself. I can see, stepping through
the C code in visual studio, pyodbc correctly skipping preparation after
the first run, then on the single "sqlexec" call immediately the entire
statement is sent over the line again and again. I 'fixed' some long text
query by reworking to a stored procedure.
I'm using sql server express 2008 and the behaviour is undenyable.
Thanks.
Robert
Original comment by rbrt8...@gmail.com
on 3 Feb 2014 at 9:48
Original issue reported on code.google.com by
rbrt8...@gmail.com
on 23 Jan 2014 at 8:47