dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
fccae4b
)
Merge "sql.php in interactive no more exit on DBerror"
author
Demon
<chadh@wikimedia.org>
Thu, 25 Oct 2012 13:31:39 +0000
(13:31 +0000)
committer
Gerrit Code Review
<gerrit@wikimedia.org>
Thu, 25 Oct 2012 13:31:39 +0000
(13:31 +0000)
maintenance/sql.php
patch
|
blob
|
history
diff --git
a/maintenance/sql.php
b/maintenance/sql.php
index
04e98d9
..
e8e8cb4
100644
(file)
--- a/
maintenance/sql.php
+++ b/
maintenance/sql.php
@@
-80,7
+80,8
@@
class MwSql extends Maintenance {
$this->sqlPrintResult( $res, $dbw );
$wholeLine = '';
} catch (DBQueryError $e) {
- $this->error( $e, true );
+ $doDie = ! Maintenance::posix_isatty( 0 );
+ $this->error( $e, $doDie );
}
}
}