@@ -1206,25 +1206,21 @@ bool Protocol_text::store(const char *from, size_t length,
1206
1206
CHARSET_INFO *fromcs, CHARSET_INFO *tocs)
1207
1207
{
1208
1208
#ifndef DBUG_OFF
1209
+ DBUG_PRINT (" info" , (" Protocol_text::store field %u (%u): %.*b" , field_pos,
1210
+ field_count, (int ) length, (length == 0 ? " " : from)));
1211
+ DBUG_ASSERT (field_handlers == 0 || field_pos < field_count);
1209
1212
DBUG_ASSERT (valid_handler (field_pos, PROTOCOL_SEND_STRING));
1210
1213
field_pos++;
1211
1214
#endif
1212
1215
return store_string_aux (from, length, fromcs, tocs);
1213
1216
}
1214
1217
1215
1218
1216
- bool Protocol_text ::store (const char *from, size_t length,
1217
- CHARSET_INFO *fromcs)
1219
+ bool Protocol ::store (const char *from, size_t length,
1220
+ CHARSET_INFO *fromcs)
1218
1221
{
1219
1222
CHARSET_INFO *tocs= this ->thd ->variables .character_set_results ;
1220
- #ifndef DBUG_OFF
1221
- DBUG_PRINT (" info" , (" Protocol_text::store field %u (%u): %.*b" , field_pos,
1222
- field_count, (int ) length, (length == 0 ? " " : from)));
1223
- DBUG_ASSERT (field_handlers == 0 || field_pos < field_count);
1224
- DBUG_ASSERT (valid_handler (field_pos, PROTOCOL_SEND_STRING));
1225
- field_pos++;
1226
- #endif
1227
- return store_string_aux (from, length, fromcs, tocs);
1223
+ return store (from, length, fromcs, tocs);
1228
1224
}
1229
1225
1230
1226
@@ -1455,14 +1451,6 @@ void Protocol_binary::prepare_for_resend()
1455
1451
}
1456
1452
1457
1453
1458
- bool Protocol_binary::store (const char *from, size_t length,
1459
- CHARSET_INFO *fromcs)
1460
- {
1461
- CHARSET_INFO *tocs= thd->variables .character_set_results ;
1462
- field_pos++;
1463
- return store_string_aux (from, length, fromcs, tocs);
1464
- }
1465
-
1466
1454
bool Protocol_binary::store (const char *from, size_t length,
1467
1455
CHARSET_INFO *fromcs, CHARSET_INFO *tocs)
1468
1456
{
@@ -1526,11 +1514,11 @@ bool Protocol_binary::store_decimal(const my_decimal *d)
1526
1514
{
1527
1515
#ifndef DBUG_OFF
1528
1516
DBUG_ASSERT (0 ); // This method is not used yet
1529
- field_pos++;
1530
1517
#endif
1531
1518
StringBuffer<DECIMAL_MAX_STR_LENGTH> str;
1532
1519
(void ) d->to_string (&str);
1533
- return store (str.ptr (), str.length (), str.charset ());
1520
+ return store (str.ptr (), str.length (), str.charset (),
1521
+ thd->variables .character_set_results );
1534
1522
}
1535
1523
1536
1524
bool Protocol_binary::store (float from, uint32 decimals, String *buffer)
0 commit comments