Permalink
Browse files

pg_dump[all] 8.4 doesn't support -d option anymore. Use --inserts ins…

…tead. Reported by Simon LECAILLE
1 parent ba1c1c2 commit 83e0f7de9d2ebac3949fb66709b582a40a38aab0 @ioguix ioguix committed Oct 29, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 dbexport.php
View
@@ -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;

0 comments on commit 83e0f7d

Please sign in to comment.