Commit 7a1282b3 authored by serg@serg.mylan's avatar serg@serg.mylan

mergemerged

parents a49387a1 dc0df7ee
...@@ -285,13 +285,6 @@ C_MODE_START int __cxa_pure_virtual() {\ ...@@ -285,13 +285,6 @@ C_MODE_START int __cxa_pure_virtual() {\
#include <alloca.h> #include <alloca.h>
#endif #endif
#ifdef HAVE_ATOMIC_ADD #ifdef HAVE_ATOMIC_ADD
#define __SMP__
#ifdef HAVE_LINUX_CONFIG_H
#include <linux/config.h> /* May define CONFIG_SMP */
#endif
#ifndef CONFIG_SMP
#define CONFIG_SMP
#endif
#if defined(__ia64__) #if defined(__ia64__)
#define new my_arg_new #define new my_arg_new
#define need_to_restore_new 1 #define need_to_restore_new 1
......
...@@ -497,9 +497,9 @@ drop database mysqltest; ...@@ -497,9 +497,9 @@ drop database mysqltest;
select database(); select database();
database() database()
NULL NULL
select database(); select database(), user();
database() database() user()
NULL NULL mysqltest_1@localhost
use test; use test;
create table t1 (a int, index `primary` (a)); create table t1 (a int, index `primary` (a));
ERROR 42000: Incorrect index name 'primary' ERROR 42000: Incorrect index name 'primary'
...@@ -563,7 +563,6 @@ select * from t2; ...@@ -563,7 +563,6 @@ select * from t2;
b b
1 1
drop table t1,t2; drop table t1,t2;
use test;
create table t1 (a int); create table t1 (a int);
create table t1 select * from t1; create table t1 select * from t1;
ERROR HY000: You can't specify target table 't1' for update in FROM clause ERROR HY000: You can't specify target table 't1' for update in FROM clause
......
...@@ -403,14 +403,17 @@ drop database mysqltest; ...@@ -403,14 +403,17 @@ drop database mysqltest;
select database(); select database();
# Connect without a database # Connect without a database
connect (user4,localhost,mysqltest_1,,*NO-ONE*); connect (user1,localhost,mysqltest_1,,*NO-ONE*);
select database(); connection user1;
select database(), user();
connection default;
disconnect user1;
use test;
# #
# Test for Bug 856 'Naming a key "Primary" causes trouble' # Test for Bug 856 'Naming a key "Primary" causes trouble'
# #
use test;
--error 1280 --error 1280
create table t1 (a int, index `primary` (a)); create table t1 (a int, index `primary` (a));
--error 1280 --error 1280
...@@ -467,8 +470,6 @@ drop table t1,t2; ...@@ -467,8 +470,6 @@ drop table t1,t2;
# This tests two additional possible errors and a hang if # This tests two additional possible errors and a hang if
# an improper fix is present. # an improper fix is present.
# #
connection default;
use test;
create table t1 (a int); create table t1 (a int);
--error 1093 --error 1093
create table t1 select * from t1; create table t1 select * from t1;
...@@ -490,3 +491,4 @@ create table t1(xyz.t1.name int); ...@@ -490,3 +491,4 @@ create table t1(xyz.t1.name int);
create table t1(t1.name int); create table t1(t1.name int);
create table t2(test.t2.name int); create table t2(test.t2.name int);
drop table t1,t2; drop table t1,t2;
...@@ -81,7 +81,7 @@ static int send_file(THD *thd) ...@@ -81,7 +81,7 @@ static int send_file(THD *thd)
char fname[FN_REFLEN+1]; char fname[FN_REFLEN+1];
const char *errmsg = 0; const char *errmsg = 0;
int old_timeout; int old_timeout;
uint packet_len; unsigned long packet_len;
char buf[IO_SIZE]; // It's safe to alloc this char buf[IO_SIZE]; // It's safe to alloc this
DBUG_ENTER("send_file"); DBUG_ENTER("send_file");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment