Skip to content

Commit 057c83a

Browse files
MDEV-28363 remove #ifdef SPIDER_use_LEX_CSTRING_for_Field_blob_constructor
1 parent 5bd91f6 commit 057c83a

File tree

6 files changed

+0
-74
lines changed

6 files changed

+0
-74
lines changed

storage/spider/ha_spider.cc

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10024,7 +10024,6 @@ int ha_spider::mk_bulk_tmp_table_and_bulk_start()
1002410024
dbton_hdl->first_link_idx >= 0 &&
1002510025
dbton_hdl->need_copy_for_update(roop_count)
1002610026
) {
10027-
#ifdef SPIDER_use_LEX_CSTRING_for_Field_blob_constructor
1002810027
LEX_CSTRING field_name = {STRING_WITH_LEN("a")};
1002910028
if (
1003010029
!tmp_table[roop_count] &&
@@ -10033,15 +10032,6 @@ int ha_spider::mk_bulk_tmp_table_and_bulk_start()
1003310032
&result_list.upd_tmp_tbl_prms[roop_count],
1003410033
&field_name, result_list.update_sqls[roop_count].charset()))
1003510034
)
10036-
#else
10037-
if (
10038-
!tmp_table[roop_count] &&
10039-
!(tmp_table[roop_count] = spider_mk_sys_tmp_table(
10040-
wide_handler->trx->thd, table,
10041-
&result_list.upd_tmp_tbl_prms[roop_count], "a",
10042-
result_list.update_sqls[roop_count].charset()))
10043-
)
10044-
#endif
1004510035
{
1004610036
error_num = HA_ERR_OUT_OF_MEM;
1004710037
goto error_2;

storage/spider/spd_db_conn.cc

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3396,18 +3396,12 @@ int spider_db_store_result(
33963396

33973397
DBUG_PRINT("info",("spider store result to temporary table"));
33983398
DBUG_ASSERT(!current->result_tmp_tbl);
3399-
#ifdef SPIDER_use_LEX_CSTRING_for_Field_blob_constructor
34003399
LEX_CSTRING field_name1 = {STRING_WITH_LEN("a")};
34013400
LEX_CSTRING field_name2 = {STRING_WITH_LEN("b")};
34023401
LEX_CSTRING field_name3 = {STRING_WITH_LEN("c")};
34033402
if (!(current->result_tmp_tbl = spider_mk_sys_tmp_table_for_result(
34043403
thd, table, &current->result_tmp_tbl_prm, &field_name1, &field_name2,
34053404
&field_name3, &my_charset_bin)))
3406-
#else
3407-
if (!(current->result_tmp_tbl = spider_mk_sys_tmp_table_for_result(
3408-
thd, table, &current->result_tmp_tbl_prm, "a", "b", "c",
3409-
&my_charset_bin)))
3410-
#endif
34113405
{
34123406
DBUG_RETURN(HA_ERR_OUT_OF_MEM);
34133407
}
@@ -3757,21 +3751,13 @@ int spider_db_store_result_for_reuse_cursor(
37573751

37583752
DBUG_PRINT("info",("spider store result to temporary table"));
37593753
DBUG_ASSERT(!current->result_tmp_tbl);
3760-
#ifdef SPIDER_use_LEX_CSTRING_for_Field_blob_constructor
37613754
LEX_CSTRING field_name1 = {STRING_WITH_LEN("a")};
37623755
LEX_CSTRING field_name2 = {STRING_WITH_LEN("b")};
37633756
LEX_CSTRING field_name3 = {STRING_WITH_LEN("c")};
37643757
if (!(current->result_tmp_tbl = spider_mk_sys_tmp_table_for_result(
37653758
thd, table, &current->result_tmp_tbl_prm, &field_name1, &field_name2,
37663759
&field_name3, &my_charset_bin)))
3767-
#else
3768-
if (!(current->result_tmp_tbl = spider_mk_sys_tmp_table_for_result(
3769-
thd, table, &current->result_tmp_tbl_prm, "a", "b", "c",
3770-
&my_charset_bin)))
3771-
#endif
3772-
{
37733760
DBUG_RETURN(HA_ERR_OUT_OF_MEM);
3774-
}
37753761
current->result_tmp_tbl_thd = thd;
37763762
TABLE *tmp_tbl = current->result_tmp_tbl;
37773763
tmp_tbl->file->extra(HA_EXTRA_WRITE_CACHE);

storage/spider/spd_db_mysql.cc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12022,14 +12022,9 @@ int spider_mbase_handler::mk_bulk_tmp_table_and_bulk_start()
1202212022
DBUG_PRINT("info",("spider this=%p", this));
1202312023
if (!upd_tmp_tbl)
1202412024
{
12025-
#ifdef SPIDER_use_LEX_CSTRING_for_Field_blob_constructor
1202612025
LEX_CSTRING field_name = {STRING_WITH_LEN("a")};
1202712026
if (!(upd_tmp_tbl = spider_mk_sys_tmp_table(
1202812027
thd, table, &upd_tmp_tbl_prm, &field_name, update_sql.charset())))
12029-
#else
12030-
if (!(upd_tmp_tbl = spider_mk_sys_tmp_table(
12031-
thd, table, &upd_tmp_tbl_prm, "a", update_sql.charset())))
12032-
#endif
1203312028
{
1203412029
DBUG_RETURN(HA_ERR_OUT_OF_MEM);
1203512030
}

storage/spider/spd_include.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@
106106

107107
#define SPIDER_read_record_read_record(A) read_record()
108108
#define SPIDER_has_Item_with_subquery
109-
#define SPIDER_use_LEX_CSTRING_for_Field_blob_constructor
110109
#define SPIDER_use_LEX_CSTRING_for_database_tablename_alias
111110
#define SPIDER_THD_db_str(A) (A)->db.str
112111
#define SPIDER_THD_db_length(A) (A)->db.length

storage/spider/spd_sys_table.cc

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3036,23 +3036,13 @@ int spider_sys_replace(
30363036
DBUG_RETURN(error_num);
30373037
}
30383038

3039-
#ifdef SPIDER_use_LEX_CSTRING_for_Field_blob_constructor
30403039
TABLE *spider_mk_sys_tmp_table(
30413040
THD *thd,
30423041
TABLE *table,
30433042
TMP_TABLE_PARAM *tmp_tbl_prm,
30443043
const LEX_CSTRING *field_name,
30453044
CHARSET_INFO *cs
30463045
)
3047-
#else
3048-
TABLE *spider_mk_sys_tmp_table(
3049-
THD *thd,
3050-
TABLE *table,
3051-
TMP_TABLE_PARAM *tmp_tbl_prm,
3052-
const char *field_name,
3053-
CHARSET_INFO *cs
3054-
)
3055-
#endif
30563046
{
30573047
Field_blob *field;
30583048
Item_field *i_field;
@@ -3110,7 +3100,6 @@ void spider_rm_sys_tmp_table(
31103100
DBUG_VOID_RETURN;
31113101
}
31123102

3113-
#ifdef SPIDER_use_LEX_CSTRING_for_Field_blob_constructor
31143103
TABLE *spider_mk_sys_tmp_table_for_result(
31153104
THD *thd,
31163105
TABLE *table,
@@ -3120,17 +3109,6 @@ TABLE *spider_mk_sys_tmp_table_for_result(
31203109
const LEX_CSTRING *field_name3,
31213110
CHARSET_INFO *cs
31223111
)
3123-
#else
3124-
TABLE *spider_mk_sys_tmp_table_for_result(
3125-
THD *thd,
3126-
TABLE *table,
3127-
TMP_TABLE_PARAM *tmp_tbl_prm,
3128-
const char *field_name1,
3129-
const char *field_name2,
3130-
const char *field_name3,
3131-
CHARSET_INFO *cs
3132-
)
3133-
#endif
31343112
{
31353113
Field_blob *field1, *field2, *field3;
31363114
Item_field *i_field1, *i_field2, *i_field3;

storage/spider/spd_sys_table.h

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -492,31 +492,20 @@ int spider_sys_replace(
492492
bool *modified_non_trans_table
493493
);
494494

495-
#ifdef SPIDER_use_LEX_CSTRING_for_Field_blob_constructor
496495
TABLE *spider_mk_sys_tmp_table(
497496
THD *thd,
498497
TABLE *table,
499498
TMP_TABLE_PARAM *tmp_tbl_prm,
500499
const LEX_CSTRING *field_name,
501500
CHARSET_INFO *cs
502501
);
503-
#else
504-
TABLE *spider_mk_sys_tmp_table(
505-
THD *thd,
506-
TABLE *table,
507-
TMP_TABLE_PARAM *tmp_tbl_prm,
508-
const char *field_name,
509-
CHARSET_INFO *cs
510-
);
511-
#endif
512502

513503
void spider_rm_sys_tmp_table(
514504
THD *thd,
515505
TABLE *tmp_table,
516506
TMP_TABLE_PARAM *tmp_tbl_prm
517507
);
518508

519-
#ifdef SPIDER_use_LEX_CSTRING_for_Field_blob_constructor
520509
TABLE *spider_mk_sys_tmp_table_for_result(
521510
THD *thd,
522511
TABLE *table,
@@ -526,17 +515,6 @@ TABLE *spider_mk_sys_tmp_table_for_result(
526515
const LEX_CSTRING *field_name3,
527516
CHARSET_INFO *cs
528517
);
529-
#else
530-
TABLE *spider_mk_sys_tmp_table_for_result(
531-
THD *thd,
532-
TABLE *table,
533-
TMP_TABLE_PARAM *tmp_tbl_prm,
534-
const char *field_name1,
535-
const char *field_name2,
536-
const char *field_name3,
537-
CHARSET_INFO *cs
538-
);
539-
#endif
540518

541519
void spider_rm_sys_tmp_table_for_result(
542520
THD *thd,

0 commit comments

Comments
 (0)