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
373c17e7
Commit
373c17e7
authored
Mar 15, 2006
by
jani@ibmlab.site
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extended test case to check that binary column
actually adds zeroes, not spaces at the end.
parent
b3e5861a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
mysql-test/r/alter_table.result
mysql-test/r/alter_table.result
+6
-0
mysql-test/t/alter_table.test
mysql-test/t/alter_table.test
+2
-0
No files found.
mysql-test/r/alter_table.result
View file @
373c17e7
...
@@ -636,7 +636,13 @@ INSERT INTO t1 VALUES ('test');
...
@@ -636,7 +636,13 @@ INSERT INTO t1 VALUES ('test');
SELECT LENGTH(s) FROM t1;
SELECT LENGTH(s) FROM t1;
LENGTH(s)
LENGTH(s)
8
8
SELECT HEX(s) FROM t1;
HEX(s)
7465737400000000
ALTER TABLE t1 MODIFY s BINARY(10);
ALTER TABLE t1 MODIFY s BINARY(10);
SELECT HEX(s) FROM t1;
HEX(s)
74657374000000000000
SELECT LENGTH(s) FROM t1;
SELECT LENGTH(s) FROM t1;
LENGTH(s)
LENGTH(s)
10
10
...
...
mysql-test/t/alter_table.test
View file @
373c17e7
...
@@ -464,6 +464,8 @@ DROP TABLE t1;
...
@@ -464,6 +464,8 @@ DROP TABLE t1;
CREATE
TABLE
t1
(
s
BINARY
(
8
));
CREATE
TABLE
t1
(
s
BINARY
(
8
));
INSERT
INTO
t1
VALUES
(
'test'
);
INSERT
INTO
t1
VALUES
(
'test'
);
SELECT
LENGTH
(
s
)
FROM
t1
;
SELECT
LENGTH
(
s
)
FROM
t1
;
SELECT
HEX
(
s
)
FROM
t1
;
ALTER
TABLE
t1
MODIFY
s
BINARY
(
10
);
ALTER
TABLE
t1
MODIFY
s
BINARY
(
10
);
SELECT
HEX
(
s
)
FROM
t1
;
SELECT
LENGTH
(
s
)
FROM
t1
;
SELECT
LENGTH
(
s
)
FROM
t1
;
DROP
TABLE
t1
;
DROP
TABLE
t1
;
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