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
ab69fac5
Commit
ab69fac5
authored
May 12, 2006
by
tnurnberg@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/mysql-4.1-10418
into mysql.com:/home/mysql-5.0-10418
parents
d1417ad5
133a5d17
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
3 deletions
+16
-3
mysql-test/r/func_str.result
mysql-test/r/func_str.result
+7
-0
mysql-test/r/outfile.result
mysql-test/r/outfile.result
+0
-0
mysql-test/t/func_str.test
mysql-test/t/func_str.test
+8
-1
mysql-test/t/outfile.test
mysql-test/t/outfile.test
+0
-1
sql/item_strfunc.cc
sql/item_strfunc.cc
+1
-1
No files found.
mysql-test/r/func_str.result
View file @
ab69fac5
...
...
@@ -1017,6 +1017,13 @@ t
1000000
1
drop table t1;
select load_file("lkjlkj");
load_file("lkjlkj")
NULL
select ifnull(load_file("lkjlkj"),"it's null");
ifnull(load_file("lkjlkj"),"it's null")
it's null
End of 4.1 tests
create table t1 (d decimal default null);
insert into t1 values (null);
select format(d, 2) from t1;
...
...
mysql-test/r/outfile.result
View file @
ab69fac5
No preview for this file type
mysql-test/t/func_str.test
View file @
ab69fac5
...
...
@@ -666,7 +666,14 @@ select rpad(i, 7, ' ') as t from t1;
--
disable_metadata
drop
table
t1
;
# End of 4.1 tests
#
# Bug #10418: LOAD_FILE does not behave like in manual if file does not exist
#
select
load_file
(
"lkjlkj"
);
select
ifnull
(
load_file
(
"lkjlkj"
),
"it's null"
);
--
echo
End
of
4.1
tests
#
# Bug #13361: SELECT FORMAT(<decimal field with null>, 2) crashes
...
...
mysql-test/t/outfile.test
View file @
ab69fac5
...
...
@@ -40,7 +40,6 @@ eval select * into dumpfile "../tmp/outfile-test.2" from t1;
--
error
1086
eval
select
*
into
dumpfile
"../tmp/outfile-test.3"
from
t1
;
enable_query_log
;
--
error
13
,
2
select
load_file
(
concat
(
@
tmpdir
,
"/outfile-test.not-exist"
));
--
exec
rm
$MYSQLTEST_VARDIR
/
tmp
/
outfile
-
test
.
1
--
exec
rm
$MYSQLTEST_VARDIR
/
tmp
/
outfile
-
test
.
2
...
...
sql/item_strfunc.cc
View file @
ab69fac5
...
...
@@ -2579,7 +2579,7 @@ String *Item_load_file::val_str(String *str)
(
void
)
fn_format
(
path
,
file_name
->
c_ptr
(),
mysql_real_data_home
,
""
,
MY_RELATIVE_PATH
|
MY_UNPACK_FILENAME
);
if
(
!
my_stat
(
path
,
&
stat_info
,
MYF
(
MY_WME
)))
if
(
!
my_stat
(
path
,
&
stat_info
,
MYF
(
0
)))
goto
err
;
if
(
!
(
stat_info
.
st_mode
&
S_IROTH
))
...
...
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