Bug #3768 - Could not add a new instance of choice with MySQL 5.0.7b - 5.0.9b
/// Execute a dummy query to get an empty recordset
if (!$rs = $db->Execute('SELECT * FROM '. $CFG->prefix . $table .' WHERE '. $primarykey .' = \'-1\'')) {
return false;
}
My vote would be simply to rename the field and keep the tables SQL compliant.
Peace - Anthony
Re: Bug #3768 - Could not add a new instance of choice with MySQL 5.0.7b - 5.0.9b
Thanks, Anthony.
your suggestion for changing the column name for RELEASE colum actually made things simple.
COOL.
Now, My CHOICE module is working fine.
Re: Bug #3768 - Could not add a new instance of choice with MySQL 5.0.7b - 5.0.9b
my new moodle download has the same error when creating a choice.
thanks
k
Re: Bug #3768 - Could not add a new instance of choice with MySQL 5.0.7b - 5.0.9b
Why not add column name quoting to function datalib.php->update_record() ? |
and adodb-lib.inc.php->_adodb_getinsertsql() |
I certainly wont be changing the table column name unless its confirmed that this will not break the next version upgrade scripts.
Multiple code changes are similarly out of the question.
Is this definately going to be fixed in the 1.6 release?
Re: Bug #3768 - Could not add a new instance of choice with MySQL 5.0.7b - 5.0.9b
I've finally committed a fix for this to HEAD - it won't be available via public cvs for a couple of hours, but this will mean it will definately be available in 1.6
the new column name is showresults
thanks!
Dan
Re: Bug #3768 - Could not add a new instance of choice with MySQL 5.0.7b - 5.0.9b
hello Dan--
first thanks for all your great job on this issue and others. do you have any update?
Re: Bug #3768 - Could not add a new instance of choice with MySQL 5.0.7b - 5.0.9b
http://moodle.org/mod/forum/discuss.php?d=39485#183497
Dan
P.S. - was it you that reported the new bug in the bugtracker? - can you please post in the bug whether this is the fix or not?
thanks!
Re: Bug #3768 - Could not add a new instance of choice with MySQL 5.0.7b - 5.0.9b
- I opened datalib.php as you mention
- I found the line /// Execute a dummy query to get an empty recordset
- But I couldn't find any "release" string to replace...