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
31f7f842
Commit
31f7f842
authored
Dec 21, 2009
by
Alfranio Correia
Browse files
Options
Browse Files
Download
Plain Diff
merge mysql-5.1-rep+2 --> mysql-5.1-rep+2-delivery1
parents
d9bb76ed
c74a017d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
45 additions
and
0 deletions
+45
-0
mysql-test/extra/rpl_tests/type_conversions.test
mysql-test/extra/rpl_tests/type_conversions.test
+28
-0
mysql-test/suite/rpl/r/rpl_typeconv.result
mysql-test/suite/rpl/r/rpl_typeconv.result
+16
-0
sql/sql_select.cc
sql/sql_select.cc
+1
-0
No files found.
mysql-test/extra/rpl_tests/type_conversions.test
View file @
31f7f842
...
...
@@ -75,6 +75,34 @@ let $target_value = 'master,slave';
let
$can_convert
=
1
;
source
extra
/
rpl_tests
/
check_type
.
inc
;
let
$source_type
=
SET
(
'0'
,
'1'
,
'2'
,
'3'
,
'4'
,
'5'
,
'6'
);
let
$target_type
=
SET
(
'0'
,
'1'
,
'2'
,
'3'
,
'4'
,
'5'
,
'6'
);
let
$source_value
=
'5'
;
let
$target_value
=
'5'
;
let
$can_convert
=
1
;
source
extra
/
rpl_tests
/
check_type
.
inc
;
let
$source_type
=
SET
(
'0'
,
'1'
,
'2'
,
'3'
,
'4'
,
'5'
,
'6'
);
let
$target_type
=
SET
(
'0'
,
'1'
,
'2'
,
'3'
,
'4'
,
'5'
,
'6'
,
'7'
,
'8'
,
'9'
,
'10'
);
let
$source_value
=
'5'
;
let
$target_value
=
'5'
;
let
$can_convert
=
$if_is_non_lossy
;
source
extra
/
rpl_tests
/
check_type
.
inc
;
let
$source_type
=
SET
(
'0'
,
'1'
,
'2'
,
'3'
,
'4'
,
'5'
,
'6'
,
'7'
,
'8'
,
'9'
,
'10'
);
let
$target_type
=
SET
(
'0'
,
'1'
,
'2'
,
'3'
,
'4'
,
'5'
,
'6'
);
let
$source_value
=
'5'
;
let
$target_value
=
'5'
;
let
$can_convert
=
$if_is_lossy
;
source
extra
/
rpl_tests
/
check_type
.
inc
;
let
$source_type
=
SET
(
'0'
,
'1'
,
'2'
,
'3'
,
'4'
,
'5'
,
'6'
,
'7'
,
'8'
,
'9'
,
'10'
);
let
$target_type
=
SET
(
'0'
,
'1'
,
'2'
,
'3'
,
'4'
,
'5'
,
'6'
);
let
$source_value
=
'7'
;
let
$target_value
=
''
;
let
$can_convert
=
$if_is_lossy
;
source
extra
/
rpl_tests
/
check_type
.
inc
;
let
$source_type
=
TINYINT
;
let
$target_type
=
TINYINT
;
let
$source_value
=
1
;
...
...
mysql-test/suite/rpl/r/rpl_typeconv.result
View file @
31f7f842
...
...
@@ -78,6 +78,10 @@ ENUM('master',' CHAR(10) <Correct error>
SET('master','s CHAR(10) <Correct error>
SET('master','s SET('master','s <Correct value>
SET('master','s SET('master','s <Correct value>
SET('0','1','2' SET('0','1','2' <Correct value>
SET('0','1','2' SET('0','1','2' <Correct error>
SET('0','1','2' SET('0','1','2' <Correct error>
SET('0','1','2' SET('0','1','2' <Correct error>
TINYINT TINYINT <Correct value>
TINYINT SMALLINT <Correct error>
TINYINT MEDIUMINT <Correct error>
...
...
@@ -176,6 +180,10 @@ ENUM('master',' CHAR(10) ALL_NON_LOSSY <Correct error>
SET('master','s CHAR(10) ALL_NON_LOSSY <Correct error>
SET('master','s SET('master','s ALL_NON_LOSSY <Correct value>
SET('master','s SET('master','s ALL_NON_LOSSY <Correct value>
SET('0','1','2' SET('0','1','2' ALL_NON_LOSSY <Correct value>
SET('0','1','2' SET('0','1','2' ALL_NON_LOSSY <Correct value>
SET('0','1','2' SET('0','1','2' ALL_NON_LOSSY <Correct error>
SET('0','1','2' SET('0','1','2' ALL_NON_LOSSY <Correct error>
TINYINT TINYINT ALL_NON_LOSSY <Correct value>
TINYINT SMALLINT ALL_NON_LOSSY <Correct value>
TINYINT MEDIUMINT ALL_NON_LOSSY <Correct value>
...
...
@@ -274,6 +282,10 @@ ENUM('master',' CHAR(10) ALL_LOSSY <Correct error>
SET('master','s CHAR(10) ALL_LOSSY <Correct error>
SET('master','s SET('master','s ALL_LOSSY <Correct value>
SET('master','s SET('master','s ALL_LOSSY <Correct value>
SET('0','1','2' SET('0','1','2' ALL_LOSSY <Correct value>
SET('0','1','2' SET('0','1','2' ALL_LOSSY <Correct error>
SET('0','1','2' SET('0','1','2' ALL_LOSSY <Correct value>
SET('0','1','2' SET('0','1','2' ALL_LOSSY <Correct value>
TINYINT TINYINT ALL_LOSSY <Correct value>
TINYINT SMALLINT ALL_LOSSY <Correct error>
TINYINT MEDIUMINT ALL_LOSSY <Correct error>
...
...
@@ -372,6 +384,10 @@ ENUM('master',' CHAR(10) ALL_LOSSY,ALL_NON_LOSSY <Correct error>
SET('master','s CHAR(10) ALL_LOSSY,ALL_NON_LOSSY <Correct error>
SET('master','s SET('master','s ALL_LOSSY,ALL_NON_LOSSY <Correct value>
SET('master','s SET('master','s ALL_LOSSY,ALL_NON_LOSSY <Correct value>
SET('0','1','2' SET('0','1','2' ALL_LOSSY,ALL_NON_LOSSY <Correct value>
SET('0','1','2' SET('0','1','2' ALL_LOSSY,ALL_NON_LOSSY <Correct value>
SET('0','1','2' SET('0','1','2' ALL_LOSSY,ALL_NON_LOSSY <Correct value>
SET('0','1','2' SET('0','1','2' ALL_LOSSY,ALL_NON_LOSSY <Correct value>
TINYINT TINYINT ALL_LOSSY,ALL_NON_LOSSY <Correct value>
TINYINT SMALLINT ALL_LOSSY,ALL_NON_LOSSY <Correct value>
TINYINT MEDIUMINT ALL_LOSSY,ALL_NON_LOSSY <Correct value>
...
...
sql/sql_select.cc
View file @
31f7f842
...
...
@@ -10454,6 +10454,7 @@ TABLE *create_virtual_tmp_table(THD *thd, List<Create_field> &field_list)
share
->
blob_field
=
blob_field
;
share
->
fields
=
field_count
;
share
->
blob_ptr_size
=
portable_sizeof_char_ptr
;
share
->
db_low_byte_first
=
1
;
// True for HEAP and MyISAM
setup_tmp_table_column_bitmaps
(
table
,
bitmaps
);
/* Create all fields and calculate the total length of record */
...
...
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