diff options
author | unknown <serg@serg.mylan> | 2005-03-17 12:27:45 +0100 |
---|---|---|
committer | unknown <serg@serg.mylan> | 2005-03-17 12:27:45 +0100 |
commit | b6e29d09b0c22037f7c1d54c55c76045a01b03ac (patch) | |
tree | 6647c711e18c396c34022d37fca3cc74234620f2 /include | |
parent | 278e691ba885480cb1ab0879d1464ecbd8d3803f (diff) | |
download | mariadb-git-b6e29d09b0c22037f7c1d54c55c76045a01b03ac.tar.gz |
Field::quote_data():
don't call escape_string_for_mysql() unnecesary
don't overwrite local buffer
escape_string_for_mysql():
take a length of the destination buffer as an argument
include/my_sys.h:
prototype changed
libmysql/libmysql.c:
prototype changed
mysys/charset.c:
escape_string_for_mysql():
take a length of the destination buffer as an argument
sql/field.cc:
Field::quote_data():
don't call escape_string_for_mysql() unnecesary
don't overwrite local buffer
sql/item.cc:
prototype changed
sql/sql_prepare.cc:
prototype changed
Diffstat (limited to 'include')
-rw-r--r-- | include/my_sys.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/my_sys.h b/include/my_sys.h index afd2803b75d..c4385cd5fd2 100644 --- a/include/my_sys.h +++ b/include/my_sys.h @@ -845,7 +845,8 @@ extern char *get_charsets_dir(char *buf); extern my_bool my_charset_same(CHARSET_INFO *cs1, CHARSET_INFO *cs2); extern my_bool init_compiled_charsets(myf flags); extern void add_compiled_collation(CHARSET_INFO *cs); -extern ulong escape_string_for_mysql(CHARSET_INFO *charset_info, char *to, +extern ulong escape_string_for_mysql(CHARSET_INFO *charset_info, + char *to, ulong to_length, const char *from, ulong length); extern void thd_increment_bytes_sent(ulong length); |