Replace pow() by number

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@395 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana 2008-05-02 15:35:07 +00:00
parent 54c866ed85
commit 70e60e6958

View file

@ -8,7 +8,7 @@ function dump_table($table, $data = true) {
$result = $mysql->query("SHOW CREATE TABLE " . idf_escape($table));
if ($result) {
echo $mysql->result($result, 1) . ";\n\n";
if ($max_packet < pow(2, 30)) { // protocol limit
if ($max_packet < 1073741824) { // protocol limit
$row_size = 21 + strlen(idf_escape($table));
foreach (fields($table) as $field) {
$type = $types[$field["type"]];