[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@3.147.83.181: ~ $
# suite/funcs_1/datadict/is_table_query.inc
#
# Check that every INFORMATION_SCHEMA table can be queried with a SELECT
# statement, just as if it were an ordinary user-defined table.
# (Requirement 3.2.1.1)
#
# The variable $is_table must be set before sourcing this script.
#
# Author:
# 2008-01-23 mleich WL#4203 Reorganize and fix the data dictionary tests of
#                           testsuite funcs_1
#                   Create this script based on older scripts and new code.
#
--disable_warnings
DROP VIEW      IF EXISTS test.v1;
DROP PROCEDURE IF EXISTS test.p1;
DROP FUNCTION  IF EXISTS test.f1;
--enable_warnings
eval CREATE VIEW test.v1 AS     SELECT * FROM information_schema.$is_table;
eval CREATE PROCEDURE test.p1() SELECT * FROM information_schema.$is_table;
delimiter //;
eval CREATE FUNCTION test.f1() returns BIGINT
BEGIN
   DECLARE counter BIGINT DEFAULT NULL;
   SELECT COUNT(*) INTO counter FROM information_schema.$is_table;
   RETURN counter;
END//
delimiter ;//


# We are not interested to check the content here.
--echo # Attention: The printing of the next result sets is disabled.
--disable_result_log
eval SELECT * FROM information_schema.$is_table;
SELECT * FROM test.v1;
CALL test.p1;
SELECT test.f1();
--enable_result_log

DROP VIEW test.v1;
DROP PROCEDURE test.p1;
DROP FUNCTION test.f1;

Filemanager

Name Type Size Permission Actions
basics_mixed1.inc File 1.74 KB 0644
basics_mixed2.inc File 2.21 KB 0644
basics_mixed3.inc File 1.95 KB 0644
columns.inc File 2.73 KB 0644
datadict.pre File 2.08 KB 0644
datadict_bug_12777.inc File 1.8 KB 0644
datadict_load.inc File 4.16 KB 0644
datadict_priv.inc File 3.34 KB 0644
is_key_column_usage.inc File 14.01 KB 0644
is_routines.inc File 18.85 KB 0644
is_schemata.inc File 10.82 KB 0644
is_table_query.inc File 1.29 KB 0644
is_tables.inc File 18.3 KB 0644
is_triggers.inc File 10.45 KB 0644
is_views.inc File 11.8 KB 0644
processlist_priv.inc File 24.41 KB 0644
processlist_val.inc File 18.49 KB 0644
statistics.inc File 1.61 KB 0644
table_constraints.inc File 1.42 KB 0644
tables.inc File 1.73 KB 0644
tables1.inc File 1.15 KB 0644
tables2.inc File 1.78 KB 0644