FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » upgrade.php and q_bitand() (Does not take into account appropriate DB driver)
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
upgrade.php and q_bitand() [message #167363] Sun, 10 June 2012 15:20 Go to previous message
NeXuS is currently offline  NeXuS
Messages: 121
Registered: July 2010
Location: South Korea
Karma:
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.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Sort Private Messages by Name
Next Topic: fud30_group_cache table, shouldn't it be a view?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Jun 18 18:42:10 GMT 2024

Total time taken to generate the page: 0.04574 seconds