|
44 | 44 |
|
45 | 45 | #include <assert.h>
|
46 | 46 |
|
47 |
| -TDS_RCSID(var, "$Id: query.c,v 1.261 2011/08/10 07:46:08 freddy77 Exp $"); |
| 47 | +TDS_RCSID(var, "$Id: query.c,v 1.262 2011/08/10 08:03:40 freddy77 Exp $"); |
48 | 48 |
|
49 | 49 | static void tds_put_params(TDSSOCKET * tds, TDSPARAMINFO * info, int flags);
|
50 | 50 | static void tds7_put_query_params(TDSSOCKET * tds, const char *query, size_t query_len);
|
51 | 51 | static void tds7_put_params_definition(TDSSOCKET * tds, const char *param_definition, size_t param_length);
|
52 | 52 | static TDSRET tds_put_data_info(TDSSOCKET * tds, TDSCOLUMN * curcol, int flags);
|
53 |
| -static TDSRET tds_put_data(TDSSOCKET * tds, TDSCOLUMN * curcol); |
| 53 | +static inline TDSRET tds_put_data(TDSSOCKET * tds, TDSCOLUMN * curcol); |
54 | 54 | static char *tds7_build_param_def_from_query(TDSSOCKET * tds, const char* converted_query, size_t converted_query_len, TDSPARAMINFO * params, size_t *out_len);
|
55 | 55 | static char *tds7_build_param_def_from_params(TDSSOCKET * tds, const char* query, size_t query_len, TDSPARAMINFO * params, size_t *out_len);
|
56 | 56 |
|
@@ -229,6 +229,18 @@ tds5_fix_dot_query(const char *query, size_t *query_len, TDSPARAMINFO * params)
|
229 | 229 | return out;
|
230 | 230 | }
|
231 | 231 |
|
| 232 | +/** |
| 233 | + * Write data to wire |
| 234 | + * \param tds state information for the socket and the TDS protocol |
| 235 | + * \param curcol column where store column information |
| 236 | + * \return TDS_FAIL on error or TDS_SUCCESS |
| 237 | + */ |
| 238 | +static inline TDSRET |
| 239 | +tds_put_data(TDSSOCKET * tds, TDSCOLUMN * curcol) |
| 240 | +{ |
| 241 | + return curcol->funcs->put_data(tds, curcol); |
| 242 | +} |
| 243 | + |
232 | 244 | static const TDS_UCHAR tds72_query_start[] = {
|
233 | 245 | /* total length */
|
234 | 246 | 0x16, 0, 0, 0,
|
@@ -1509,18 +1521,6 @@ tds_put_data_info_length(TDSSOCKET * tds, TDSCOLUMN * curcol, int flags)
|
1509 | 1521 | return len + curcol->column_varint_size;
|
1510 | 1522 | }
|
1511 | 1523 |
|
1512 |
| -/** |
1513 |
| - * Write data to wire |
1514 |
| - * \param tds state information for the socket and the TDS protocol |
1515 |
| - * \param curcol column where store column information |
1516 |
| - * \return TDS_FAIL on error or TDS_SUCCESS |
1517 |
| - */ |
1518 |
| -static TDSRET |
1519 |
| -tds_put_data(TDSSOCKET * tds, TDSCOLUMN * curcol) |
1520 |
| -{ |
1521 |
| - return curcol->funcs->put_data(tds, curcol); |
1522 |
| -} |
1523 |
| - |
1524 | 1524 | static void
|
1525 | 1525 | tds7_send_execute(TDSSOCKET * tds, TDSDYNAMIC * dyn)
|
1526 | 1526 | {
|
|
0 commit comments