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
f3347b70
Commit
f3347b70
authored
Dec 11, 2007
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge witty.:/Users/mattiasj/clones/mysql-5.1-bug32948
into witty.:/Users/mattiasj/clones/51_push32948
parents
adbe16ad
7a4a266d
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
24 additions
and
11 deletions
+24
-11
mysql-test/r/csv.result
mysql-test/r/csv.result
+8
-2
mysql-test/r/events_scheduling.result
mysql-test/r/events_scheduling.result
+2
-2
mysql-test/t/csv.test
mysql-test/t/csv.test
+9
-2
mysql-test/t/disabled.def
mysql-test/t/disabled.def
+0
-1
mysql-test/t/events_scheduling.test
mysql-test/t/events_scheduling.test
+1
-1
sql/event_data_objects.cc
sql/event_data_objects.cc
+0
-2
storage/csv/ha_tina.cc
storage/csv/ha_tina.cc
+4
-1
No files found.
mysql-test/r/csv.result
View file @
f3347b70
...
...
@@ -5364,13 +5364,19 @@ BIN(a)
0
drop table t1;
create table t1(a enum('foo','bar') default null) engine=csv;
ERROR
HY000: Can't create table 'test.t1' (errno: -1)
ERROR
42000: The storage engine for the table doesn't support nullable columns
create table t1(a enum('foo','bar') default 'foo') engine=csv;
ERROR
HY000: Can't create table 'test.t1' (errno: -1)
ERROR
42000: The storage engine for the table doesn't support nullable columns
create table t1(a enum('foo','bar') default 'foo' not null) engine=csv;
insert into t1 values();
select * from t1;
a
foo
drop table t1;
CREATE TABLE t1(a INT) ENGINE=CSV;
ERROR 42000: The storage engine for the table doesn't support nullable columns
SHOW WARNINGS;
Level Code Message
Error 1178 The storage engine for the table doesn't support nullable columns
Error 1005 Can't create table 'test.t1' (errno: 138)
End of 5.1 tests
mysql-test/r/events_scheduling.result
View file @
f3347b70
...
...
@@ -78,10 +78,10 @@ FROM INFORMATION_SCHEMA.EVENTS
WHERE EVENT_SCHEMA=DATABASE() AND EVENT_NAME='event_2';
IF(TIME_TO_SEC(TIMEDIFF(ENDS,STARTS))=6, 'OK', 'ERROR')
OK
SELECT IF(LAST_EXECUTED-ENDS <
3
, 'OK', 'ERROR')
SELECT IF(LAST_EXECUTED-ENDS <
= 0
, 'OK', 'ERROR')
FROM INFORMATION_SCHEMA.EVENTS
WHERE EVENT_SCHEMA=DATABASE() AND EVENT_NAME='event_2';
IF(LAST_EXECUTED-ENDS <
3
, 'OK', 'ERROR')
IF(LAST_EXECUTED-ENDS <
= 0
, 'OK', 'ERROR')
OK
"Already dropped because ended. Therefore an error."
DROP EVENT event_3;
...
...
mysql-test/t/csv.test
View file @
f3347b70
...
...
@@ -1755,9 +1755,9 @@ insert into t1 values();
select BIN(a) from t1;
drop table t1;
# We prevent creation of table with nullable ENUM
--error ER_C
ANT_CREATE_TABLE
--error ER_C
HECK_NOT_IMPLEMENTED
create table t1(a enum('foo','bar') default null) engine=csv;
--error ER_C
ANT_CREATE_TABLE
--error ER_C
HECK_NOT_IMPLEMENTED
create table t1(a enum('foo','bar') default 'foo') engine=csv;
# Enum columns must be specified as NOT NULL
create table t1(a enum('foo','bar') default 'foo' not null) engine=csv;
...
...
@@ -1765,5 +1765,12 @@ insert into t1 values();
select * from t1;
drop table t1;
#
# BUG#32817 - though CSV is marked as supported create table is rejected
# with error 1005.
#
--error ER_CHECK_NOT_IMPLEMENTED
CREATE TABLE t1(a INT) ENGINE=CSV;
SHOW WARNINGS;
--echo End of 5.1 tests
mysql-test/t/disabled.def
View file @
f3347b70
...
...
@@ -16,7 +16,6 @@ ctype_big5 : BUG#26711 2007-06-21 Lars Test has never worked on Do
federated_transactions : Bug#29523 Transactions do not work
events : Bug#32664 events.test fails randomly
events_scheduling : Bug#29830 Test case 'events_scheduling' fails on Mac OS X and Windows
lowercase_table3 : Bug#32667 lowercase_table3.test reports to error log
kill : Bug#29149: Test "kill" fails on Windows
grant3 : Bug#32723: grant3.test fails
...
...
mysql-test/t/events_scheduling.test
View file @
f3347b70
...
...
@@ -87,7 +87,7 @@ SELECT IF(TIME_TO_SEC(TIMEDIFF(ENDS,STARTS))=6, 'OK', 'ERROR')
FROM
INFORMATION_SCHEMA
.
EVENTS
WHERE
EVENT_SCHEMA
=
DATABASE
()
AND
EVENT_NAME
=
'event_2'
;
SELECT
IF
(
LAST_EXECUTED
-
ENDS
<
3
,
'OK'
,
'ERROR'
)
SELECT
IF
(
LAST_EXECUTED
-
ENDS
<
=
0
,
'OK'
,
'ERROR'
)
FROM
INFORMATION_SCHEMA
.
EVENTS
WHERE
EVENT_SCHEMA
=
DATABASE
()
AND
EVENT_NAME
=
'event_2'
;
...
...
sql/event_data_objects.cc
View file @
f3347b70
...
...
@@ -1649,8 +1649,6 @@ Event_queue_element::compute_next_execution_time()
void
Event_queue_element
::
mark_last_executed
(
THD
*
thd
)
{
thd
->
set_current_time
();
last_executed
=
(
my_time_t
)
thd
->
query_start
();
last_executed_changed
=
TRUE
;
...
...
storage/csv/ha_tina.cc
View file @
f3347b70
...
...
@@ -1486,7 +1486,10 @@ int ha_tina::create(const char *name, TABLE *table_arg,
for
(
Field
**
field
=
table_arg
->
s
->
field
;
*
field
;
field
++
)
{
if
((
*
field
)
->
real_maybe_null
())
DBUG_RETURN
(
-
1
);
{
my_error
(
ER_CHECK_NOT_IMPLEMENTED
,
MYF
(
0
),
"nullable columns"
);
DBUG_RETURN
(
HA_ERR_UNSUPPORTED
);
}
}
...
...
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