403Webshell
Server IP : 172.67.216.182  /  Your IP : 172.71.124.171
Web Server : Apache
System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64
User : www ( 1000)
PHP Version : 7.4.33
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /www/server/mysql/src/mysql-test/suite/innodb/t/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/server/mysql/src/mysql-test/suite/innodb/t/file_format_defaults.test
#***********************************************************
# WL#7703:
# Check the max key length 3072 when innodb_large_prefix=ON
# Check boundary value of max key length 3073
# When innodb_file_format=Antelope, compress DDLs fails
# Check file_format_max becomes Barracuda on DDL operation
# on compression table.
#***********************************************************
-- source include/have_innodb.inc
-- source include/have_innodb_16k.inc

# Check some default settings
SELECT @@innodb_strict_mode;

SELECT @@innodb_file_per_table;

SET GLOBAL innodb_large_prefix=ON;

# check the  ERROR 1071 (42000): Specified key was too long; max key length is 3072 bytes
--error ER_TOO_LONG_KEY
CREATE TABLE tab0 (c1 VARCHAR(65530), KEY(c1(3073))) ENGINE=InnoDB ROW_FORMAT=COMPRESSED;

# check the  ERROR 1071 (42000): Specified key was too long; max key length is 3072 bytes
--error ER_TOO_LONG_KEY
CREATE TABLE tab0 (c1 VARCHAR(65530), KEY(c1(3073))) ENGINE=InnoDB KEY_BLOCK_SIZE=2;

# check DDL is successful at boundary value of key length
CREATE TABLE tab0 (c1 VARCHAR(65530), KEY(c1(3072))) ENGINE=InnoDB ROW_FORMAT=COMPRESSED;

DROP table tab0;

SET GLOBAL innodb_file_format=Antelope;

# WL#8307 Make ROW_FORMAT=DYNAMIC the default
# will allow ROW_FORMAT=DYNAMIC even if innodb_file_format=Antelope.
CREATE TABLE tab0(c1 INT,c2 LONGBLOB ) ENGINE=InnoDB ROW_FORMAT=Dynamic;
DROP TABLE tab0;

SET GLOBAL innodb_file_format=Default;

SELECT @@innodb_file_format;

SET GLOBAL innodb_strict_mode=OFF;

# Check with default value
SET GLOBAL innodb_strict_mode=Default;

SELECT @@innodb_strict_mode;

SET GLOBAL innodb_large_prefix=OFF;

SELECT @@innodb_large_prefix;

SET GLOBAL innodb_large_prefix=Default;

# Check with default value
SELECT @@innodb_large_prefix;

SET GLOBAL innodb_file_format_max=Default;

# Check with default value
SELECT @@innodb_file_format_max;

CREATE TABLE tab1(c1 int ) ENGINE=InnoDB ROW_FORMAT=COMPRESSED;

# Check file format changed to Barracuda, on DDL operation
SELECT @@innodb_file_format_max;

SET GLOBAL innodb_file_format_max=Default;

# Restore to the value that we explicitly used at startup.
SET GLOBAL innodb_large_prefix=off;

DROP TABLE tab1;

Youez - 2016 - github.com/yon3zu
LinuXploit