Skip to content

Commit

Permalink
Display indentifier size limit warning for Oracle
Browse files Browse the repository at this point in the history
Issue #22851
  • Loading branch information
dregad committed May 15, 2017
1 parent 119addd commit b220740
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 7 additions & 1 deletion admin/install.php
Expand Up @@ -672,10 +672,16 @@ function print_test( $p_test_description, $p_result, $p_hard_fail = true, $p_mes
echo "\t\t" . $t_prefix_labels[$t_key] . "\n";
echo "\t</td>\n\t<td>\n\t\t";
echo '<input id="' . $t_key . '" name="' . $t_key . '" type="text" class="db-table-prefix" value="' . $f_db_table_prefix . '">';
echo "\n&nbsp;";
if( $t_key != 'db_table_suffix' ) {
$t_id_sample = $t_key. '_sample';
echo "\n&nbsp;", '<label for="' . $t_id_sample . '">Sample table name:</label>';
echo '<label for="' . $t_id_sample . '">Sample table name:</label>';
echo "\n", '<input id="' . $t_id_sample . '" type="text" size="40" disabled>';
} else {
echo '<span id="oracle_size_warning" >';
echo "On Oracle < 12cR2, max length for identifiers is 30 chars. "
. "Keep pre/suffixes as short as possible to avoid problems.";
echo '<span>';
}
echo "\n\t</td>\n</tr>\n\n";
}
Expand Down
2 changes: 2 additions & 0 deletions js/install.js
Expand Up @@ -30,8 +30,10 @@ $('#db_type').change(
var db;
if ($(this).val() == 'oci8') {
db = 'oci8';
$('#oracle_size_warning').show();
} else {
db = 'other';
$('#oracle_size_warning').hide();
}

$('#default_' + db + ' span').each(
Expand Down

0 comments on commit b220740

Please sign in to comment.