Merge "(bug 37020) sql.php with readline eats semicolon"
[lhc/web/wiklou.git] / maintenance / sql.php
index e8e8cb4..a0277b2 100644 (file)
@@ -72,7 +72,9 @@ class MwSql extends Maintenance {
                                continue;
                        }
                        if ( $useReadline ) {
-                               readline_add_history( $wholeLine );
+                               # Delimiter is eated by streamStatementEnd, we add it
+                               # up in the history (bug 37020)
+                               readline_add_history( $wholeLine . $dbw->getDelimiter() );
                                readline_write_history( $historyFile );
                        }
                        try{