Skip to content

Commit d328857

Browse files
author
monty@hundin.mysql.fi
committed
Patch for SCO
Update test results for MySQL 4.0
1 parent cefe361 commit d328857

File tree

8 files changed

+40
-8
lines changed

8 files changed

+40
-8
lines changed

extra/resolveip.c

+2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
#include <m_ctype.h>
2424
#include <my_net.h>
2525
#include <my_sys.h>
26+
#ifndef SCO
2627
#include <m_string.h>
28+
#endif
2729
#include <sys/types.h>
2830
#include <sys/socket.h>
2931
#ifndef HAVE_BROKEN_NETINET_INCLUDES

mysql-test/r/backup.result

+1
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,4 @@ backup table t1 to '../tmp';
7070
unlock tables;
7171
Table Op Msg_type Msg_text
7272
test.t1 backup status OK
73+
drop table t1;

mysql-test/r/bdb-crash.result

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
drop table if exists tblChange;
2-
CREATE TABLE tblCharge (
1+
drop table if exists t1;
2+
CREATE TABLE t1 (
33
ChargeID int(10) unsigned DEFAULT '0' NOT NULL auto_increment,
44
ServiceID int(10) unsigned DEFAULT '0' NOT NULL,
55
ChargeDate date DEFAULT '0000-00-00' NOT NULL,
@@ -16,17 +16,17 @@ KEY ServiceID (ServiceID),
1616
KEY ChargeDate (ChargeDate)
1717
) type=BDB;
1818
BEGIN;
19-
INSERT INTO tblCharge
19+
INSERT INTO t1
2020
VALUES(NULL,1,'2001-03-01',1,1,1,'New',NULL,NULL,'now');
2121
COMMIT;
2222
BEGIN;
23-
UPDATE tblCharge SET ChargeAuthorizationMessage = 'blablabla' WHERE
23+
UPDATE t1 SET ChargeAuthorizationMessage = 'blablabla' WHERE
2424
ChargeID = 1;
2525
COMMIT;
26-
INSERT INTO tblCharge
26+
INSERT INTO t1
2727
VALUES(NULL,1,'2001-03-01',1,1,1,'New',NULL,NULL,'now');
28-
select * from tblCharge;
28+
select * from t1;
2929
ChargeID ServiceID ChargeDate ChargeAmount FedTaxes ProvTaxes ChargeStatus ChargeAuthorizationMessage ChargeComment ChargeTimeStamp
3030
1 1 2001-03-01 1.00 1.00 1.00 New blablabla NULL now
3131
2 1 2001-03-01 1.00 1.00 1.00 New NULL NULL now
32-
drop table tblCharge;
32+
drop table t1;

mysql-test/r/bdb-deadlock.result

+21
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,31 @@
1+
drop table if exists t1,t2;
2+
create table t1 (id integer, x integer) type=BDB;
3+
create table t2 (id integer, x integer) type=BDB;
4+
insert into t1 values(0, 0);
5+
insert into t2 values(0, 0);
6+
set autocommit=0;
7+
update t1 set x = 1 where id = 0;
8+
set autocommit=0;
9+
update t2 set x = 1 where id = 0;
10+
select x from t1 where id = 0;
11+
select x from t2 where id = 0;
12+
Deadlock found when trying to get lock; Try restarting transaction
13+
commit;
114
x
215
1
16+
commit;
17+
select * from t1;
318
id x
419
0 1
20+
select * from t2;
521
id x
622
0 1
23+
commit;
24+
select * from t1;
725
id x
826
0 1
27+
select * from t2;
928
id x
1029
0 1
30+
commit;
31+
drop table t1,t2;

mysys/mf_casecnv.c

+2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@
2525

2626
#include "mysys_priv.h"
2727
#include <m_ctype.h>
28+
#ifndef SCO
2829
#include <m_string.h>
30+
#endif
2931

3032
/* string to uppercase */
3133

mysys/mf_qsort.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323

2424

2525
#include "mysys_priv.h"
26-
#include "m_string.h"
26+
#ifndef SCO
27+
#include <m_string.h>
28+
#endif
2729

2830
/* We need to use qsort with 2 different compare functions */
2931
#ifdef QSORT_EXTRA_CMP_ARGUMENT

mysys/my_compress.c

+2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
2020
#include <my_global.h>
2121
#ifdef HAVE_COMPRESS
2222
#include <my_sys.h>
23+
#ifndef SCO
2324
#include <m_string.h>
25+
#endif
2426
#include <zlib.h>
2527

2628
/*

strings/ctype.c

+2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717

1818
#include <my_global.h>
1919
#include <m_ctype.h>
20+
#ifndef SCO
2021
#include <m_string.h>
22+
#endif
2123

2224
/* generated by make, using conf_to_src */
2325
#include "ctype_extra_sources.c"

0 commit comments

Comments
 (0)