Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
4b0d6a38
Commit
4b0d6a38
authored
Jul 28, 2005
by
marko@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
row_sel_store_mysql_rec(): Convert NULL true VARCHAR columns
correctly.
parent
c878d149
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
6 deletions
+14
-6
innobase/row/row0sel.c
innobase/row/row0sel.c
+10
-2
mysql-test/r/innodb.result
mysql-test/r/innodb.result
+4
-4
No files found.
innobase/row/row0sel.c
View file @
4b0d6a38
...
...
@@ -2524,11 +2524,19 @@ row_sel_store_mysql_rec(
(
byte
)
(
templ
->
mysql_null_bit_mask
);
switch
(
templ
->
type
)
{
case
DATA_VARCHAR
:
case
DATA_CHAR
:
case
DATA_BINARY
:
case
DATA_VARMYSQL
:
if
(
templ
->
mysql_type
==
DATA_MYSQL_TRUE_VARCHAR
)
{
/* This is a >= 5.0.3 type
true VARCHAR. Zero the field. */
pad_char
=
0x00
;
break
;
}
/* Fall through */
case
DATA_CHAR
:
case
DATA_FIXBINARY
:
case
DATA_MYSQL
:
case
DATA_VARMYSQL
:
/* MySQL pads all non-BLOB and non-TEXT
string types with space ' ' */
if
(
UNIV_UNLIKELY
(
templ
->
mbminlen
==
2
))
{
...
...
mysql-test/r/innodb.result
View file @
4b0d6a38
...
...
@@ -1452,16 +1452,16 @@ Error 1146 Table 'test.t4' doesn't exist
checksum table t1, t2, t3, t4;
Table Checksum
test.t1 2948697075
test.t2
1157260244
test.t3
1157260244
test.t2
3835700799
test.t3
3835700799
test.t4 NULL
Warnings:
Error 1146 Table 'test.t4' doesn't exist
checksum table t1, t2, t3, t4 extended;
Table Checksum
test.t1 3092701434
test.t2
1157260244
test.t3
1157260244
test.t2
3835700799
test.t3
3835700799
test.t4 NULL
Warnings:
Error 1146 Table 'test.t4' doesn't exist
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment