Closed (fixed)
Project:
Provision
Version:
6.x-1.8
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 May 2012 at 23:18 UTC
Updated:
12 Jun 2014 at 08:41 UTC
Jump to comment: Most recent
It appears that on my Debian wheezy machine, the call to $server->shell_exec() strips the empty quotes in the command that intentionally tries to fail a MySQL connection. That results in a mysql error, but not the one the function expects, so the migrate rolls back, leaving me stuck.
A simple fix is to actually pass a trivial query rather than an empty one. Attached patch does just that, it attempts to run "SELECT VERSION()" after connecting to the database server.
| Comment | File | Size | Author |
|---|---|---|---|
| failed-to-fail-e.patch | 575 bytes | cafuego |
Comments
Comment #1
anarcat commentedThis looks good, although I would have personnally done "SELECT 1" instead. :)
Comment #2
exnihilo commentedPatch works for me, thank you (Debian testing/wheezy, PHP 5.4.0-3, MySQL 5.1.61, Apache/2.2.22).
Comment #3
Anonymous (not verified) commentedGood enough for me - committed. Thanks!
Comment #4.0
(not verified) commentedUpdated issue summary.