Closed (won't fix)
Project:
Database Administration
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
23 Jun 2007 at 19:08 UTC
Updated:
28 Oct 2011 at 23:54 UTC
Jump to comment: Most recent file
Comments
Comment #1
dwwAnd for HEAD...
Comment #2
dwwnot having thought about this much or investigated, it's not clear why we're manually trying to escape everything instead of just using db_escape_string()... these patches might need re-doing.
Comment #3
smk-ka commentedBecause creating a textual dump is different from actually executing a query. mysql_real_escape_string() escapes both types of quotes with a backslash, where we only need to double single quotes and leave double quotes unchanged.
Updated patch contains:
- support for NULL values, to be able to 100% recreate a database
- the missing read-in of the table schema.
Tests I've run so far:
1. created a phpMyAdmin reference dump
2. created a site snapshot using Demo module
3. reset site using Demo module
4. created another dump using phpMyAdmin and visually diffed against the first one. Result is 100% the same (except for changed timestamps, of course).
--
Stefan Kudwien
unleashed mind
Comment #4
dwwgreat, thanks! don't have time to review/test now, but i certainly appreciate the patch. however, since this is a bug, please provide a version for the DRUPAL-4-7 branch, too...
thanks,
-derek
Comment #5
jeremy commentedThe 5.x branch is no longer supported.