diff options
author | unknown <bar@mysql.com> | 2004-10-28 15:21:20 +0500 |
---|---|---|
committer | unknown <bar@mysql.com> | 2004-10-28 15:21:20 +0500 |
commit | 5be6c328f5a9f78f37176bbbd88a538fa3b65fe9 (patch) | |
tree | 89a7308e5767cf2511c3186f862a93842a18065d /sql/sql_string.h | |
parent | 9b041682cc605400d0ccf70ad8f3e98c829b1aab (diff) | |
download | mariadb-git-5be6c328f5a9f78f37176bbbd88a538fa3b65fe9.tar.gz |
Produce a "truncated" warning if a value cannot be converted
into the column character set on INSERT/UPDATE.
sql/sql_string.cc:
New argument to report an error.
sql/sql_string.h:
New argument to report an error.
Diffstat (limited to 'sql/sql_string.h')
-rw-r--r-- | sql/sql_string.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_string.h b/sql/sql_string.h index 2d368991159..de8f4af58d9 100644 --- a/sql/sql_string.h +++ b/sql/sql_string.h @@ -29,7 +29,7 @@ int sortcmp(const String *a,const String *b, CHARSET_INFO *cs); String *copy_if_not_alloced(String *a,String *b,uint32 arg_length); uint32 copy_and_convert(char *to, uint32 to_length, CHARSET_INFO *to_cs, const char *from, uint32 from_length, - CHARSET_INFO *from_cs); + CHARSET_INFO *from_cs, uint *errors= 0); class String { @@ -199,7 +199,7 @@ public: CHARSET_INFO *cs); bool set_or_copy_aligned(const char *s, uint32 arg_length, CHARSET_INFO *cs); bool copy(const char*s,uint32 arg_length, CHARSET_INFO *csfrom, - CHARSET_INFO *csto); + CHARSET_INFO *csto, uint *errors= 0); bool append(const String &s); bool append(const char *s); bool append(const char *s,uint32 arg_length); |