mySQL 5.0.11 sources for tomato
[tomato.git] / release / src / router / mysql / mysql-test / t / udf_skip_grants.test
blobbd9402e0d8a896dc982469410e987b82716ccbdc
1 ####################### udf_skip_grants.test ###########################
2 #                                                                      #
3 # Test for bug #32020 "loading udfs while --skip-grant-tables is       #
4 #                     enabled causes out of memory errors"             #
5 #                                                                      #
6 # Creation:                                                            #
7 # 2007-12-24 akopytov Moved the test case for bug #32020 from          #
8 #                     skip_grants.test to a separate test to ensure    #
9 #                     that it is only run when the server is built     #
10 #                     with support for dynamically loaded libraries    #
11 #                     (see bug #33305).                                #
12 #                                                                      #
13 ########################################################################
15 -- source include/not_embedded.inc
16 -- source include/have_udf.inc
19 # Bug #32020: loading udfs while --skip-grant-tables is enabled causes out of 
20 #             memory errors
23 --error ER_CANT_INITIALIZE_UDF
24 CREATE FUNCTION a RETURNS STRING SONAME '';
25 --error ER_SP_DOES_NOT_EXIST
26 DROP FUNCTION a;
28 --echo End of 5.0 tests