Closed (fixed)
Project:
SimpleTest Clone
Version:
6.x-1.2
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Oct 2010 at 12:56 UTC
Updated:
21 Mar 2012 at 21:30 UTC
I encountered a bug where the cloned tables that are generated (for CCK generated tables) have a different column ordering than what's in the original database.
It wouldn't be so bad, but the data is imported with the original column ordering, so the wrong data ends up in the wrong columns.
The column ordering (after the vid and nid columns) doesn't appear to be in alphabetical, on the fieldname, nor inversed from the original ordering, nor ordered be field weight.
It makes all tests that check values on that node type fail.
Is there a DB schema cache or something that needs to get reset or something?
| Comment | File | Size | Author |
|---|---|---|---|
| 2010-10-19_05.54.04.jpg | 111.58 KB | rich.yumul |
Comments
Comment #1
jhedstromInteresting. Since db fields are added to the original tables in the order that CCK fields are added to the node type, this makes sense. The fix will be to change the code to explicitly name the db columns on insert.
Comment #2
jhedstromThis has been fixed by explicitly naming fields in the insert statement.
Comment #3
jhedstrom