From 02138201ccf5f8a9cae786b798f0871c7393934f Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Tue, 30 Apr 2002 20:32:26 +0000 Subject: [PATCH] table options --- ChangeLog | 2 ++ tbl_properties.php3 | 12 ++++++++++++ tbl_properties_options.php3 | 28 +++++++++++++++++++++++++++- 3 files changed, 41 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e1f2162b8..c30471f74 100755 --- a/ChangeLog +++ b/ChangeLog @@ -10,6 +10,8 @@ $Source$ 2002-04-30 Marc Delisle * tbl_qbe.php3, try to make it work again + * tbl_properties.php3, tbl_properties_table_info.php3, + tbl_properties_options.php3: support for 3 MyISAM table options 2002-04-30 Alexander M. Turek * lang/german.inc.php3: Clarification ($strFlushTable). diff --git a/tbl_properties.php3 b/tbl_properties.php3 index 3d5650134..d9f79fa6d 100755 --- a/tbl_properties.php3 +++ b/tbl_properties.php3 @@ -55,6 +55,18 @@ if (isset($submitorderby) && !empty($order_field)) { $local_query = 'ALTER TABLE ' . PMA_backquote($table) . 'ORDER BY ' . $order_field; $result = mysql_query($local_query) or PMA_mysqlDie('', $local_query, '', $err_url); } +/** + * Update table options + */ +if (isset($submitoptions)) { + $local_query = 'ALTER TABLE ' . PMA_backquote($table) + . (isset($pack_keys) ? ' pack_keys=1': ' pack_keys=0') + . (isset($checksum) ? ' checksum=1': ' checksum=0') + . (isset($delay_key_write) ? ' delay_key_write=1': ' delay_key_write=0'); + $result = mysql_query($local_query) or PMA_mysqlDie('', $local_query, '', $err_url); +} + + // 1. Get table information require('./tbl_properties_table_info.php3'); diff --git a/tbl_properties_options.php3 b/tbl_properties_options.php3 index 1d3390e91..4b508293c 100755 --- a/tbl_properties_options.php3 +++ b/tbl_properties_options.php3 @@ -5,9 +5,9 @@ require('./tbl_properties_common.php3'); require('./tbl_properties_table_info.php3'); +echo "
    \n"; if (PMA_MYSQL_INT_VERSION >= 32322) { ?> -
    • @@ -83,6 +83,32 @@ if (PMA_MYSQL_INT_VERSION >= 32322) { echo "\n"; } // end MySQL >= 3.23.22 +if (PMA_MYSQL_INT_VERSION >= 32322) { +?> + +
    • + + + + + + + />pack_keys
      + + />checksum
      + + />delay_key_write + +
    • +
    • +\n"; + /** * Displays the footer */