support MySQL 5.1 PARTITION in CREATE TABLE dialog
This commit is contained in:
@@ -179,17 +179,19 @@ if (isset($_REQUEST['do_save_data'])) {
|
||||
$sql_query = 'CREATE TABLE ' . PMA_backquote($db) . '.' . PMA_backquote($table)
|
||||
. ' (' . $sql_query . ')';
|
||||
|
||||
// Adds table type, character set and comments
|
||||
// Adds table type, character set, comments and partition definition
|
||||
if (!empty($tbl_type) && ($tbl_type != 'Default')) {
|
||||
$sql_query .= ' ' . PMA_ENGINE_KEYWORD . ' = ' . $tbl_type;
|
||||
}
|
||||
if (!empty($tbl_collation)) {
|
||||
$sql_query .= PMA_generateCharsetQueryPart($tbl_collation);
|
||||
}
|
||||
|
||||
if (!empty($comment)) {
|
||||
$sql_query .= ' COMMENT = \'' . PMA_sqlAddslashes($comment) . '\'';
|
||||
}
|
||||
if (!empty($partition_definition)) {
|
||||
$sql_query .= ' ' . PMA_sqlAddslashes($partition_definition);
|
||||
}
|
||||
|
||||
// Executes the query
|
||||
$result = PMA_DBI_try_query($sql_query);
|
||||
|
Reference in New Issue
Block a user