Below is the list of changes that have just been committed into a local
4.1 repository of bar. When bar does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html
ChangeSet
1.2390 05/08/29 15:44:49 bar@stripped +2 -0
Merge abarkov@stripped:/home/bk/mysql-4.1
into mysql.com:/usr/home/bar/mysql-4.1.b12371
sql/item.h
1.190 05/08/29 15:44:43 bar@stripped +0 -0
Auto merged
sql/item.cc
1.218 05/08/29 15:44:43 bar@stripped +0 -0
Auto merged
# This is a BitKeeper patch. What follows are the unified diffs for the
# set of deltas contained in the patch. The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User: bar
# Host: bar.intranet.mysql.r18.ru
# Root: /usr/home/bar/mysql-4.1.b12371/RESYNC
--- 1.217/sql/item.cc 2005-08-19 23:49:29 +05:00
+++ 1.218/sql/item.cc 2005-08-29 15:44:43 +05:00
@@ -284,6 +284,26 @@
}
+Item *Item_param::safe_charset_converter(CHARSET_INFO *tocs)
+{
+ if (const_item())
+ {
+ Item_string *conv;
+ uint conv_errors;
+ String tmp, cstr, *ostr= val_str(&tmp);
+ cstr.copy(ostr->ptr(), ostr->length(), ostr->charset(), tocs, &conv_errors);
+ if (conv_errors || !(conv= new Item_string(cstr.ptr(), cstr.length(),
+ cstr.charset(),
+ collation.derivation)))
+ return NULL;
+ conv->str_value.copy();
+ conv->str_value.shrink_to_length();
+ return conv;
+ }
+ return NULL;
+}
+
+
bool Item_string::eq(const Item *item, bool binary_cmp) const
{
if (type() == item->type() && item->basic_const_item())
--- 1.189/sql/item.h 2005-08-06 16:56:01 +05:00
+++ 1.190/sql/item.h 2005-08-29 15:44:43 +05:00
@@ -532,6 +532,7 @@
struct CONVERSION_INFO
{
CHARSET_INFO *character_set_client;
+ CHARSET_INFO *character_set_of_placeholder;
/*
This points at character set of connection if conversion
to it is required (i. e. if placeholder typecode is not BLOB).
@@ -1024,6 +1025,15 @@
String* val_str(String* s);
bool get_date(TIME *ltime, uint fuzzydate);
void print(String *str);
+ /*
+ we add RAND_TABLE_BIT to prevent moving this item from HAVING to WHERE
+ */
+ table_map used_tables() const
+ {
+ return (depended_from ?
+ OUTER_REF_TABLE_BIT :
+ (*ref)->used_tables() | RAND_TABLE_BIT);
+ }
};
class Item_null_helper :public Item_ref_null_helper
| Thread |
|---|
| • bk commit into 4.1 tree (bar:1.2390) | bar | 29 Aug |