summaryrefslogtreecommitdiff
path: root/sql/item_func.cc
diff options
context:
space:
mode:
authorunknown <tsmith@ramayana.hindu.god>2007-08-01 18:14:50 -0600
committerunknown <tsmith@ramayana.hindu.god>2007-08-01 18:14:50 -0600
commit41ac5d83b228e29345882b28517a0ba6933ecafb (patch)
tree388d81a01a0bea738fcd0d47b69dca3795b38441 /sql/item_func.cc
parent25723542a1ffcd3365b51a48bbab0e238306ab2a (diff)
parent1b04b4b11382f63b5b276d0f5d046b29adca72d0 (diff)
downloadmariadb-git-41ac5d83b228e29345882b28517a0ba6933ecafb.tar.gz
Merge ramayana.hindu.god:/home/tsmith/m/bk/50
into ramayana.hindu.god:/home/tsmith/m/bk/maint/50 mysql-test/r/federated.result: Auto merged mysql-test/t/federated.test: Auto merged sql/ha_federated.h: Auto merged sql/item_func.cc: Auto merged sql/sql_class.h: Auto merged sql/sql_table.cc: Auto merged mysql-test/r/innodb_mysql.result: Manual merge mysql-test/t/innodb_mysql.test: Manual merge
Diffstat (limited to 'sql/item_func.cc')
-rw-r--r--sql/item_func.cc11
1 files changed, 1 insertions, 10 deletions
diff --git a/sql/item_func.cc b/sql/item_func.cc
index e05f0a45083..4b32281b457 100644
--- a/sql/item_func.cc
+++ b/sql/item_func.cc
@@ -649,16 +649,7 @@ bool Item_func_connection_id::fix_fields(THD *thd, Item **ref)
{
if (Item_int_func::fix_fields(thd, ref))
return TRUE;
-
- /*
- To replicate CONNECTION_ID() properly we should use
- pseudo_thread_id on slave, which contains the value of thread_id
- on master.
- */
- value= ((thd->slave_thread) ?
- thd->variables.pseudo_thread_id :
- thd->thread_id);
-
+ value= thd->variables.pseudo_thread_id;
return FALSE;
}