upgrade.php and q_bitand() [message #167363] |
Sun, 10 June 2012 15:20 |
NeXuS
Messages: 121 Registered: July 2010 Location: South Korea
Karma: 5
|
Senior Member Contributing Core Developer |
|
|
There is a hack in upgrade.php (around line 605) which works only for a few DBs.
// Another hack: q_bitand() was introduced in 3.0.2 and is used in this script.
// but the possibly older driver we've loaded may not have it yet.
if (!function_exists('q_bitand')) {
function q_bitand($fieldLeft, $fieldRight) {
return $fieldLeft .' & '. $fieldRight;
}
}
We should really find the appropriate db.inc and load it before ever using the function.
|
|
|
|
|
|
|
|
|
Re: upgrade.php and q_bitand() [message #167458 is a reply to message #167455] |
Mon, 25 June 2012 07:09 |
NeXuS
Messages: 121 Registered: July 2010 Location: South Korea
Karma: 5
|
Senior Member Contributing Core Developer |
|
|
Oh, I didn't look through the changelog, so I thought it would be necessary to have the function around for all the DBs. My bad! XD
Still waiting for an answer from the MySQL guys regarding the problem with the group_cache view.
|
|
|