Skip to content

Commit

Permalink
fix tds_send_emulated_execute if no parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
freddy77 committed Aug 22, 2008
1 parent a50812b commit 1a96dac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion ChangeLog
@@ -1,3 +1,8 @@
Fri Aug 22 07:29:18 CET 2008 Frediano Ziglio <freddy77_A_gmail_D_com>
* src/tds/query.c:
- applied modified patch from Chris Reeves for fix
tds_send_emulated_execute if no parameters

Sun Aug 17 10:42:41 CET 2008 Frediano Ziglio <freddy77_A_gmail_D_com>
* src/tds/query.c: do not loose sync on conversion errors

Expand Down Expand Up @@ -199,4 +204,4 @@ Wed Jan 9 19:54:43 EST 2008 JK Lowden <jklowden@freetds.org>
* ChangeLog truncated because of release
* ChangeLog-0.82 added because of release

$Id: ChangeLog,v 1.2454.2.47 2008-08-17 08:43:16 freddy77 Exp $
$Id: ChangeLog,v 1.2454.2.48 2008-08-22 05:29:43 freddy77 Exp $
4 changes: 2 additions & 2 deletions src/tds/query.c
Expand Up @@ -46,7 +46,7 @@

#include <assert.h>

TDS_RCSID(var, "$Id: query.c,v 1.217.2.2 2008-08-17 08:43:16 freddy77 Exp $");
TDS_RCSID(var, "$Id: query.c,v 1.217.2.3 2008-08-22 05:29:44 freddy77 Exp $");

static void tds_put_params(TDSSOCKET * tds, TDSPARAMINFO * info, int flags);
static void tds7_put_query_params(TDSSOCKET * tds, const char *query, int query_len);
Expand Down Expand Up @@ -2851,7 +2851,7 @@ tds_send_emulated_execute(TDSSOCKET * tds, const char *query, TDSPARAMINFO * par
START_QUERY;
if (!num_placeholders) {
tds_put_string(tds, query, -1);
return tds_flush_packet(tds);
return TDS_SUCCEED;
}

s = query;
Expand Down

0 comments on commit 1a96dac

Please sign in to comment.