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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
496eb569
Commit
496eb569
authored
Aug 29, 2007
by
malff/marcsql@weblab.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Manual merge
parent
180ca238
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
106 additions
and
0 deletions
+106
-0
mysql-test/r/sp.result
mysql-test/r/sp.result
+52
-0
mysql-test/t/sp.test
mysql-test/t/sp.test
+54
-0
No files found.
mysql-test/r/sp.result
View file @
496eb569
...
...
@@ -6569,4 +6569,56 @@ rl_acquirer old
drop procedure p1;
drop table t1;
set session low_priority_updates=default;
# Bug#13675.
DROP PROCEDURE IF EXISTS p1;
DROP PROCEDURE IF EXISTS p2;
DROP TABLE IF EXISTS t1;
CREATE PROCEDURE p1(v DATETIME) CREATE TABLE t1 SELECT v;
CREATE PROCEDURE p2(v INT) CREATE TABLE t1 SELECT v;
CALL p1(NOW());
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`v` datetime DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1
DROP TABLE t1;
CALL p1('text');
Warnings:
Warning 1264 Out of range value for column 'v' at row 1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`v` datetime DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1
DROP TABLE t1;
CALL p2(10);
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`v` bigint(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1
DROP TABLE t1;
CALL p2('text');
Warnings:
Warning 1366 Incorrect integer value: 'text' for column 'v' at row 1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`v` bigint(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1
DROP TABLE t1;
DROP PROCEDURE p1;
DROP PROCEDURE p2;
End of 5.0 tests
mysql-test/t/sp.test
View file @
496eb569
...
...
@@ -7559,4 +7559,58 @@ drop procedure p1;
drop
table
t1
;
set
session
low_priority_updates
=
default
;
#
# Bug#13675: DATETIME/DATE type in store proc param seems to be converted as
# varbinary
#
--
echo
--
echo
# Bug#13675.
--
echo
--
disable_warnings
DROP
PROCEDURE
IF
EXISTS
p1
;
DROP
PROCEDURE
IF
EXISTS
p2
;
DROP
TABLE
IF
EXISTS
t1
;
--
enable_warnings
--
echo
CREATE
PROCEDURE
p1
(
v
DATETIME
)
CREATE
TABLE
t1
SELECT
v
;
CREATE
PROCEDURE
p2
(
v
INT
)
CREATE
TABLE
t1
SELECT
v
;
--
echo
CALL
p1
(
NOW
());
SHOW
CREATE
TABLE
t1
;
--
echo
DROP
TABLE
t1
;
--
echo
CALL
p1
(
'text'
);
SHOW
CREATE
TABLE
t1
;
--
echo
DROP
TABLE
t1
;
--
echo
CALL
p2
(
10
);
SHOW
CREATE
TABLE
t1
;
--
echo
DROP
TABLE
t1
;
--
echo
CALL
p2
(
'text'
);
SHOW
CREATE
TABLE
t1
;
--
echo
DROP
TABLE
t1
;
--
echo
DROP
PROCEDURE
p1
;
DROP
PROCEDURE
p2
;
--
echo
End
of
5.0
tests
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