Skip to content

Commit

Permalink
pg_dump[all] 8.4 doesn't support -d option anymore. Use --inserts ins…
Browse files Browse the repository at this point in the history
…tead. Reported by Simon LECAILLE
  • Loading branch information
ioguix committed Oct 29, 2009
1 parent ba1c1c2 commit 83e0f7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dbexport.php
Expand Up @@ -109,15 +109,15 @@
switch ($_REQUEST['what']) {
case 'dataonly':
$cmd .= ' -a';
if ($_REQUEST['d_format'] == 'sql') $cmd .= ' -d';
if ($_REQUEST['d_format'] == 'sql') $cmd .= ' --inserts';
elseif (isset($_REQUEST['d_oids'])) $cmd .= ' -o';
break;
case 'structureonly':
$cmd .= ' -s';
if (isset($_REQUEST['s_clean'])) $cmd .= ' -c';
break;
case 'structureanddata':
if ($_REQUEST['sd_format'] == 'sql') $cmd .= ' -d';
if ($_REQUEST['sd_format'] == 'sql') $cmd .= ' --inserts';
elseif (isset($_REQUEST['sd_oids'])) $cmd .= ' -o';
if (isset($_REQUEST['sd_clean'])) $cmd .= ' -c';
break;
Expand Down

0 comments on commit 83e0f7d

Please sign in to comment.