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
b9c6c482
Commit
b9c6c482
authored
Mar 28, 2005
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge serg@bk-internal.mysql.com:/home/bk/mysql-4.1/
into serg.mylan:/usr/home/serg/Abk/mysql-4.1
parents
8fa1f65a
e674f459
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
46 additions
and
15 deletions
+46
-15
mysql-test/r/union.result
mysql-test/r/union.result
+5
-0
mysql-test/r/user_var.result
mysql-test/r/user_var.result
+7
-0
mysql-test/t/union.test
mysql-test/t/union.test
+6
-0
mysql-test/t/user_var.test
mysql-test/t/user_var.test
+7
-0
ndb/src/kernel/blocks/dbdict/printSchemaFile.cpp
ndb/src/kernel/blocks/dbdict/printSchemaFile.cpp
+15
-0
ndb/src/kernel/blocks/dbdict/printSchemafile/Makefile
ndb/src/kernel/blocks/dbdict/printSchemafile/Makefile
+0
-12
sql/item_func.cc
sql/item_func.cc
+6
-3
No files found.
mysql-test/r/union.result
View file @
b9c6c482
...
...
@@ -1195,3 +1195,8 @@ a b
2 b
3 c
drop table t1;
set @val:=6;
select concat('value is: ', @val) union select 'some text';
concat('value is: ', @val)
value is: 6
some text
mysql-test/r/user_var.result
View file @
b9c6c482
...
...
@@ -193,3 +193,10 @@ set @var= NULL ;
select FIELD( @var,'1it','Hit') as my_column;
my_column
0
select @v, coercibility(@v);
@v coercibility(@v)
NULL 2
set @v1=null, @v2=1, @v3=1.1, @v4=now();
select coercibility(@v1),coercibility(@v2),coercibility(@v3),coercibility(@v4);
coercibility(@v1) coercibility(@v2) coercibility(@v3) coercibility(@v4)
2 2 2 2
mysql-test/t/union.test
View file @
b9c6c482
...
...
@@ -711,3 +711,9 @@ select * from ((select * from t1 limit 1) union (select * from t1 limit 1) union
select
*
from
((((
select
*
from
t1
)))
union
(
select
*
from
t1
)
union
(
select
*
from
t1
))
a
;
select
*
from
((
select
*
from
t1
)
union
(((
select
*
from
t1
)))
union
(
select
*
from
t1
))
a
;
drop
table
t1
;
#
# Bugs#6519 UNION with collation binary and latin1_swedish_ci fails
#
set
@
val
:=
6
;
select
concat
(
'value is: '
,
@
val
)
union
select
'some text'
;
mysql-test/t/user_var.test
View file @
b9c6c482
...
...
@@ -122,3 +122,10 @@ drop table t1;
#
set
@
var
=
NULL
;
select
FIELD
(
@
var
,
'1it'
,
'Hit'
)
as
my_column
;
#
# Bug#9425 A user variable doesn't always have implicit coercibility
#
select
@
v
,
coercibility
(
@
v
);
set
@
v1
=
null
,
@
v2
=
1
,
@
v3
=
1.1
,
@
v4
=
now
();
select
coercibility
(
@
v1
),
coercibility
(
@
v2
),
coercibility
(
@
v3
),
coercibility
(
@
v4
);
ndb/src/kernel/blocks/dbdict/printSchema
file/printSchemaf
ile.cpp
→
ndb/src/kernel/blocks/dbdict/printSchema
F
ile.cpp
View file @
b9c6c482
#if 0
make -f Makefile -f - printSchemaFile <<'_eof_'
printSchemaFile: printSchemaFile.cpp
$(CXXCOMPILE) -o $@ $@.cpp -L../../../common/util/.libs -lgeneral
_eof_
exit $?
#endif
/* Copyright (C) 2003 MySQL AB
This program is free software; you can redistribute it and/or modify
...
...
@@ -92,6 +100,13 @@ NDB_COMMAND(printSchemafile,
}
print
(
filename
,
(
SchemaFile
*
)
&
buf
[
0
]);
Uint32
chk
=
0
,
i
;
for
(
i
=
0
;
i
<
bytes
/
4
;
i
++
)
chk
^=
buf
[
i
];
if
(
chk
!=
0
)
ndbout
<<
"Invalid checksum!"
<<
endl
;
delete
[]
buf
;
return
0
;
}
ndb/src/kernel/blocks/dbdict/printSchemafile/Makefile
deleted
100644 → 0
View file @
8fa1f65a
include
.defs.mk
TYPE
:=
ndbapi
BIN_TARGET
:=
printSchemafile
BIN_TARGET_ARCHIVES
:=
portlib general
CCFLAGS_LOC
+=
-I
..
SOURCES
:=
printSchemafile.cpp
include
$(NDB_TOP)/Epilogue.mk
sql/item_func.cc
View file @
b9c6c482
...
...
@@ -2634,20 +2634,20 @@ Item_func_set_user_var::update()
case
REAL_RESULT
:
{
res
=
update_hash
((
void
*
)
&
save_result
.
vreal
,
sizeof
(
save_result
.
vreal
),
REAL_RESULT
,
&
my_charset_bin
,
DERIVATION_
NONE
);
REAL_RESULT
,
&
my_charset_bin
,
DERIVATION_
IMPLICIT
);
break
;
}
case
INT_RESULT
:
{
res
=
update_hash
((
void
*
)
&
save_result
.
vint
,
sizeof
(
save_result
.
vint
),
INT_RESULT
,
&
my_charset_bin
,
DERIVATION_
NONE
);
INT_RESULT
,
&
my_charset_bin
,
DERIVATION_
IMPLICIT
);
break
;
}
case
STRING_RESULT
:
{
if
(
!
save_result
.
vstr
)
// Null value
res
=
update_hash
((
void
*
)
0
,
0
,
STRING_RESULT
,
&
my_charset_bin
,
DERIVATION_
NONE
);
DERIVATION_
IMPLICIT
);
else
res
=
update_hash
((
void
*
)
save_result
.
vstr
->
ptr
(),
save_result
.
vstr
->
length
(),
STRING_RESULT
,
...
...
@@ -2870,7 +2870,10 @@ void Item_func_get_user_var::fix_length_and_dec()
}
}
else
{
collation
.
set
(
&
my_charset_bin
,
DERIVATION_IMPLICIT
);
null_value
=
1
;
}
if
(
error
)
thd
->
fatal_error
();
...
...
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