diff options
author | unknown <heikki@donna.mysql.fi> | 2001-03-02 19:07:29 +0200 |
---|---|---|
committer | unknown <heikki@donna.mysql.fi> | 2001-03-02 19:07:29 +0200 |
commit | 3be063eab8cc9af4f7782b693b497817c2511ddc (patch) | |
tree | e096bcefe8539963540359f715bb58acff391647 /innobase/include | |
parent | e6a57adc935301833372ac9f13184e7b3b8d7d99 (diff) | |
download | mariadb-git-3be063eab8cc9af4f7782b693b497817c2511ddc.tar.gz |
row0sel.c Removes now trailing spaces from varchars
srv0start.c Removes now trailing spaces from varchars
row0mysql.ic Removes now trailing spaces from varchars
ha_innobase.cc Removes now trailing spaces from varchars
sql/ha_innobase.cc:
Removes now trailing spaces from varchars
innobase/include/row0mysql.ic:
Removes now trailing spaces from varchars
innobase/row/row0sel.c:
Removes now trailing spaces from varchars
innobase/srv/srv0start.c:
Removes now trailing spaces from varchars
Diffstat (limited to 'innobase/include')
-rw-r--r-- | innobase/include/row0mysql.ic | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/innobase/include/row0mysql.ic b/innobase/include/row0mysql.ic index 957a143008d..6096e5771f7 100644 --- a/innobase/include/row0mysql.ic +++ b/innobase/include/row0mysql.ic @@ -89,7 +89,12 @@ row_mysql_store_col_in_innobase_format( } } else if (type == DATA_VARCHAR || type == DATA_VARMYSQL || type == DATA_BINARY) { - ptr = row_mysql_read_var_ref(&col_len, mysql_data); + ptr = row_mysql_read_var_ref(&col_len, mysql_data); + + /* Remove trailing spaces */ + while (col_len > 0 && ptr[col_len - 1] == ' ') { + col_len--; + } } else if (type == DATA_BLOB) { ptr = row_mysql_read_blob_ref(&col_len, mysql_data, col_len); |