Use new function for SQL compatibility modes.

This commit is contained in:
Michal Čihař
2006-02-22 10:16:45 +00:00
parent 3575d8b0d2
commit 99e5d3478b
2 changed files with 5 additions and 15 deletions

View File

@@ -12,6 +12,8 @@ $Source$
SQL compatibility modes.
* libraries/plugin_interface.lib.php: Add support for select options and
documentation.
* libraries/display_export.lib.php: Use new function for SQL compatibility
modes.
2006-02-22 Sebastian Mendel <cybot_tm@users.sourceforge.net>
* libraries/footer.inc.php:

View File

@@ -286,25 +286,13 @@ function show_checked_option() {
<label for="checkbox_disable_fk">
<?php echo $strDisableForeignChecks; ?></label>
</div>
<?php if (PMA_MYSQL_INT_VERSION >= 40100) { ?>
<?php
$compats = PMA_DBI_get_compatibilities();
if (!is_null($compats)) { ?>
<label for="select_sql_compat">
<?php echo $strSQLExportCompatibility; ?>:</label>
<select name="sql_compat" id="select_sql_compat">
<?php
$compats = array('NONE');
if (PMA_MYSQL_INT_VERSION >= 40101) {
$compats[] = 'ANSI';
$compats[] = 'DB2';
$compats[] = 'MAXDB';
$compats[] = 'MYSQL323';
$compats[] = 'MYSQL40';
$compats[] = 'MSSQL';
$compats[] = 'ORACLE';
$compats[] = 'POSTGRESQL';
if (PMA_MYSQL_INT_VERSION >= 50001) {
$compats[] = 'TRADITIONAL';
}
}
foreach ($compats as $x) {
echo '<option value="' . $x . '"'
. ($cfg['Export']['sql_compat'] == $x ? ' selected="selected"' : '' )