Loading config/ac-macros/misc.m4 +4 −1 Original line number Diff line number Diff line Loading @@ -361,7 +361,8 @@ AC_CACHE_VAL(mysql_cv_termcap_lib, [AC_CHECK_LIB(ncurses, tgetent, mysql_cv_termcap_lib=libncurses, [AC_CHECK_LIB(curses, tgetent, mysql_cv_termcap_lib=libcurses, [AC_CHECK_LIB(termcap, tgetent, mysql_cv_termcap_lib=libtermcap, mysql_cv_termcap_lib=NOT_FOUND)])])]) [AC_CHECK_LIB(tinfo, tgetent, mysql_cv_termcap_lib=libtinfo, mysql_cv_termcap_lib=NOT_FOUND)])])])]) AC_MSG_CHECKING(for termcap functions library) if test "$mysql_cv_termcap_lib" = "NOT_FOUND"; then AC_MSG_ERROR([No curses/termcap library found]) Loading @@ -369,6 +370,8 @@ elif test "$mysql_cv_termcap_lib" = "libtermcap"; then TERMCAP_LIB=-ltermcap elif test "$mysql_cv_termcap_lib" = "libncurses"; then TERMCAP_LIB=-lncurses elif test "$mysql_cv_termcap_lib" = "libtinfo"; then TERMCAP_LIB=-ltinfo else TERMCAP_LIB=-lcurses fi Loading configure.in +5 −0 Original line number Diff line number Diff line Loading @@ -775,6 +775,9 @@ AC_SUBST(WRAPLIBS) if test "$TARGET_LINUX" = "true"; then AC_MSG_CHECKING([for atomic operations]) AC_LANG_SAVE AC_LANG_CPLUSPLUS atom_ops= AC_TRY_RUN([ #include <asm/atomic.h> Loading Loading @@ -810,6 +813,8 @@ int main() if test -z "$atom_ops"; then atom_ops="no"; fi AC_MSG_RESULT($atom_ops) AC_LANG_RESTORE AC_ARG_WITH(pstack, [ --with-pstack Use the pstack backtrace library], [ USE_PSTACK=$withval ], Loading mysql-test/r/ctype_ucs.result +12 −0 Original line number Diff line number Diff line Loading @@ -674,6 +674,18 @@ Warnings: Warning 1264 Out of range value for column 'Field1' at row 1 DROP TABLE t1; SET NAMES latin1; SELECT CONVERT(103, CHAR(50) UNICODE); CONVERT(103, CHAR(50) UNICODE) 103 SELECT CONVERT(103.0, CHAR(50) UNICODE); CONVERT(103.0, CHAR(50) UNICODE) 103.0 SELECT CONVERT(-103, CHAR(50) UNICODE); CONVERT(-103, CHAR(50) UNICODE) -103 SELECT CONVERT(-103.0, CHAR(50) UNICODE); CONVERT(-103.0, CHAR(50) UNICODE) -103.0 CREATE TABLE t1 ( a varchar(255) NOT NULL default '', KEY a (a) Loading mysql-test/r/func_op.result +11 −0 Original line number Diff line number Diff line Loading @@ -35,3 +35,14 @@ select -1 >> 0, -1 << 0; select -1 >> 1, -1 << 1; -1 >> 1 -1 << 1 9223372036854775807 18446744073709551614 drop table if exists t1,t2; create table t1(a int); create table t2(a int, b int); insert into t1 values (1), (2), (3); insert into t2 values (1, 7), (3, 7); select t1.a, t2.a, t2.b, bit_count(t2.b) from t1 left join t2 on t1.a=t2.a; a a b bit_count(t2.b) 1 1 7 3 2 NULL NULL NULL 3 3 7 3 drop table t1, t2; mysql-test/r/view.result +23 −0 Original line number Diff line number Diff line Loading @@ -2600,3 +2600,26 @@ id td 5 2005-01-04 DROP VIEW v1; DROP TABLE t1; create table t1 (a int); create view v1 as select * from t1; create view v2 as select * from v1; drop table t1; rename table v2 to t1; select * from v1; ERROR HY000: `test`.`v1` contain view recursion drop view t1, v1; create table t1 (a int); create function f1() returns int begin declare mx int; select max(a) from t1 into mx; return mx; end// create view v1 as select f1() as a; create view v2 as select * from v1; drop table t1; rename table v2 to t1; select * from v1; ERROR HY000: Recursive stored functions and triggers are not allowed. drop function f1; drop view t1, v1; Loading
config/ac-macros/misc.m4 +4 −1 Original line number Diff line number Diff line Loading @@ -361,7 +361,8 @@ AC_CACHE_VAL(mysql_cv_termcap_lib, [AC_CHECK_LIB(ncurses, tgetent, mysql_cv_termcap_lib=libncurses, [AC_CHECK_LIB(curses, tgetent, mysql_cv_termcap_lib=libcurses, [AC_CHECK_LIB(termcap, tgetent, mysql_cv_termcap_lib=libtermcap, mysql_cv_termcap_lib=NOT_FOUND)])])]) [AC_CHECK_LIB(tinfo, tgetent, mysql_cv_termcap_lib=libtinfo, mysql_cv_termcap_lib=NOT_FOUND)])])])]) AC_MSG_CHECKING(for termcap functions library) if test "$mysql_cv_termcap_lib" = "NOT_FOUND"; then AC_MSG_ERROR([No curses/termcap library found]) Loading @@ -369,6 +370,8 @@ elif test "$mysql_cv_termcap_lib" = "libtermcap"; then TERMCAP_LIB=-ltermcap elif test "$mysql_cv_termcap_lib" = "libncurses"; then TERMCAP_LIB=-lncurses elif test "$mysql_cv_termcap_lib" = "libtinfo"; then TERMCAP_LIB=-ltinfo else TERMCAP_LIB=-lcurses fi Loading
configure.in +5 −0 Original line number Diff line number Diff line Loading @@ -775,6 +775,9 @@ AC_SUBST(WRAPLIBS) if test "$TARGET_LINUX" = "true"; then AC_MSG_CHECKING([for atomic operations]) AC_LANG_SAVE AC_LANG_CPLUSPLUS atom_ops= AC_TRY_RUN([ #include <asm/atomic.h> Loading Loading @@ -810,6 +813,8 @@ int main() if test -z "$atom_ops"; then atom_ops="no"; fi AC_MSG_RESULT($atom_ops) AC_LANG_RESTORE AC_ARG_WITH(pstack, [ --with-pstack Use the pstack backtrace library], [ USE_PSTACK=$withval ], Loading
mysql-test/r/ctype_ucs.result +12 −0 Original line number Diff line number Diff line Loading @@ -674,6 +674,18 @@ Warnings: Warning 1264 Out of range value for column 'Field1' at row 1 DROP TABLE t1; SET NAMES latin1; SELECT CONVERT(103, CHAR(50) UNICODE); CONVERT(103, CHAR(50) UNICODE) 103 SELECT CONVERT(103.0, CHAR(50) UNICODE); CONVERT(103.0, CHAR(50) UNICODE) 103.0 SELECT CONVERT(-103, CHAR(50) UNICODE); CONVERT(-103, CHAR(50) UNICODE) -103 SELECT CONVERT(-103.0, CHAR(50) UNICODE); CONVERT(-103.0, CHAR(50) UNICODE) -103.0 CREATE TABLE t1 ( a varchar(255) NOT NULL default '', KEY a (a) Loading
mysql-test/r/func_op.result +11 −0 Original line number Diff line number Diff line Loading @@ -35,3 +35,14 @@ select -1 >> 0, -1 << 0; select -1 >> 1, -1 << 1; -1 >> 1 -1 << 1 9223372036854775807 18446744073709551614 drop table if exists t1,t2; create table t1(a int); create table t2(a int, b int); insert into t1 values (1), (2), (3); insert into t2 values (1, 7), (3, 7); select t1.a, t2.a, t2.b, bit_count(t2.b) from t1 left join t2 on t1.a=t2.a; a a b bit_count(t2.b) 1 1 7 3 2 NULL NULL NULL 3 3 7 3 drop table t1, t2;
mysql-test/r/view.result +23 −0 Original line number Diff line number Diff line Loading @@ -2600,3 +2600,26 @@ id td 5 2005-01-04 DROP VIEW v1; DROP TABLE t1; create table t1 (a int); create view v1 as select * from t1; create view v2 as select * from v1; drop table t1; rename table v2 to t1; select * from v1; ERROR HY000: `test`.`v1` contain view recursion drop view t1, v1; create table t1 (a int); create function f1() returns int begin declare mx int; select max(a) from t1 into mx; return mx; end// create view v1 as select f1() as a; create view v2 as select * from v1; drop table t1; rename table v2 to t1; select * from v1; ERROR HY000: Recursive stored functions and triggers are not allowed. drop function f1; drop view t1, v1;