Linux ip-172-26-2-223 5.4.0-1018-aws #18-Ubuntu SMP Wed Jun 24 01:15:00 UTC 2020 x86_64
Apache
: 172.26.2.223 | : 13.59.210.36
Cant Read [ /etc/named.conf ]
8.1.13
www
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
BLACK DEFEND!
README
+ Create Folder
+ Create File
/
www /
server /
mysql /
mysql-test /
suite /
gcol /
inc /
[ HOME SHELL ]
Name
Size
Permission
Action
gcol_blocked_sql_funcs_main.in...
11.78
KB
-rw-r--r--
gcol_cleanup.inc
1.34
KB
-rw-r--r--
gcol_column_def_options.inc
20.94
KB
-rw-r--r--
gcol_dependancies_on_vcol.inc
2.39
KB
-rw-r--r--
gcol_handler.inc
3.03
KB
-rw-r--r--
gcol_init_vars.pre
1.17
KB
-rw-r--r--
gcol_ins_upd.inc
18.39
KB
-rw-r--r--
gcol_keys.inc
26.66
KB
-rw-r--r--
gcol_non_stored_columns.inc
6.42
KB
-rw-r--r--
gcol_partition.inc
5.8
KB
-rw-r--r--
gcol_rejected.inc
21.29
KB
-rw-r--r--
gcol_select.inc
40.05
KB
-rw-r--r--
gcol_supported_sql_funcs.inc
1.63
KB
-rw-r--r--
gcol_supported_sql_funcs_main....
41.09
KB
-rw-r--r--
gcol_trigger_sp.inc
2.84
KB
-rw-r--r--
gcol_unsupported_storage_engin...
1.38
KB
-rw-r--r--
gcol_view.inc
6.89
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : gcol_non_stored_columns.inc
################################################################################ # inc/gcol_non_stored_columns.inc # # # # Purpose: # # Ensure that MySQL behaviour is consistent irrelevant of # # - the place of a non-stored column among other columns, # # - the total number of non-stored fields. # # # #------------------------------------------------------------------------------# # Original Author: Andrey Zhakov # # Original Date: 2008-09-04 # # Change Author: # # Change Date: # # Change: # ################################################################################ --echo # Case 1. All non-stored columns. eval create $opt_tmp table t1 (a int generated always as (2+3) virtual); insert into t1 values (default); select * from t1; insert into t1 values (default); select * from t1; drop table t1; --echo # Case 2. CREATE --echo # - Column1: "real" --echo # - Column 2: virtual non-stored eval create $opt_tmp table t1 (a int, b int generated always as (-a) virtual); insert into t1 values (1,default); select * from t1; insert into t1 values (2,default); select * from t1 order by a; drop table t1; --echo # Case 3. CREATE --echo # - Column1: "real" --echo # - Column 2: virtual stored eval create $opt_tmp table t1 (a int, b int generated always as (-a) stored); insert into t1 values (1,default); select * from t1; insert into t1 values (2,default); select * from t1 order by a; drop table t1; --echo # Case 4. CREATE --echo # - Column1: virtual non-stored --echo # - Column2: "real" eval create $opt_tmp table t1 (a int generated always as (-b) virtual, b int); insert into t1 values (default,1); select * from t1; insert into t1 values (default,2); select * from t1 order by a; drop table t1; --echo # Case 5. CREATE --echo # - Column1: virtual stored --echo # - Column2: "real" eval create $opt_tmp table t1 (a int generated always as (-b) stored, b int); insert into t1 values (default,1); select * from t1; insert into t1 values (default,2); select * from t1 order by a; drop table t1; --echo # Case 6. CREATE --echo # - Column1: "real" --echo # - Column2: virtual non-stored --echo # - Column3: virtual stored eval create $opt_tmp table t1 (a int, b int generated always as (-a), c int generated always as (-a) stored); insert into t1 values (1,default,default); select * from t1; insert into t1 values (2,default,default); select * from t1 order by a; drop table t1; --echo # Case 7. ALTER. Modify virtual stored -> virtual non-stored eval create $opt_tmp table t1 (a int, b int generated always as (a % 2) stored); --error ER_UNSUPPORTED_ACTION_ON_GENERATED_COLUMN alter table t1 modify b int generated always as (a % 2) virtual; show create table t1; drop table t1; --echo # Case 8. ALTER. Modify virtual non-stored -> virtual stored eval create $opt_tmp table t1 (a int, b int generated always as (a % 2) virtual); --error ER_UNSUPPORTED_ACTION_ON_GENERATED_COLUMN alter table t1 modify b int generated always as (a % 2) stored; show create table t1; drop table t1; --echo # Case 9. CREATE LIKE --echo # - Column1: "real" --echo # - Column2: virtual non-stored --echo # - Column3: virtual stored eval create $opt_tmp table t1 (a int, b int generated always as (-a), c int generated always as (-a) stored); eval create $opt_tmp table t2 like t1; insert into t2 values (1,default,default); select * from t2; insert into t2 values (2,default,default); select * from t2 order by a; drop table t2; drop table t1; --echo # Case 10. ALTER. Dropping a virtual non-stored column. --echo # - Column1: virtual non-stored --echo # - Column2: "real" eval create $opt_tmp table t1 (a int generated always as (-b) virtual, b int, c varchar(5)); insert into t1 values (default,1,'v1'); insert into t1 values (default,2,'v2'); select * from t1 order by b; alter table t1 drop column a; select * from t1 order by b; show create table t1; drop table t1; --echo # Case 11. ALTER. Dropping a virtual stored column. --echo # - Column1: virtual stored --echo # - Column2: "real" eval create $opt_tmp table t1 (a int generated always as (-b) stored, b int, c char(5)); insert into t1 values (default,1,'v1'); insert into t1 values (default,2,'v2'); select * from t1 order by b; alter table t1 drop column a; select * from t1 order by b; show create table t1; drop table t1; --echo # Case 12. ALTER. Adding a new virtual non-stored column. eval create $opt_tmp table t1 (a int, b datetime); insert into t1 values (1,'2008-09-04'); insert into t1 values (2,'2008-09-05'); select * from t1 order by a; alter table t1 add column c int generated always as (dayofyear(b)) virtual after a; select * from t1 order by a; show create table t1; drop table t1; --echo # Case 13. ALTER. Adding a new virtual stored column. eval create $opt_tmp table t1 (a int, b datetime); insert into t1 values (1,'2008-09-04'); insert into t1 values (2,'2008-09-05'); select * from t1 order by a; alter table t1 add column c int generated always as (dayofyear(b)) stored after a; select * from t1 order by a; show create table t1; drop table t1; --echo # Case 14. ALTER. Changing the expression of a virtual stored column. eval create $opt_tmp table t1 (a int, b datetime, c int generated always as (week(b)) stored); insert into t1 values (1,'2008-09-04',default); insert into t1 values (2,'2008-09-05',default); select * from t1 order by a; alter table t1 change column c c int generated always as (week(b,1)) stored; select * from t1 order by a; show create table t1; drop table t1; --echo # Case 15. ALTER. Changing the expression of a virtual non-stored column. eval create $opt_tmp table t1 (a int, b datetime, c int generated always as (week(b)) virtual); insert into t1 values (1,'2008-09-04',default); insert into t1 values (2,'2008-09-05',default); select * from t1 order by a; alter table t1 change column c c int generated always as (week(b,1)) virtual; select * from t1 order by a; show create table t1; drop table t1;
Close