support MySQL 5.1 PARTITION in CREATE TABLE dialog

This commit is contained in:
Marc Delisle
2007-10-06 12:30:29 +00:00
parent 6057aaa33b
commit c04fe749b6
58 changed files with 77 additions and 3 deletions

View File

@@ -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);