Jump to content

[ Kernel ] MySQL Class Suggestion


Guest Jeremy Privett

Recommended Posts

Matt,

The current MySQL Class in the IPS Kernel replaces that table prefix with the following regex:

$the_query = preg_replace("/\sibf_(\S+?)([\s\.,]|$)/", " ".$this->obj['sql_tbl_prefix']."\\1\\2", $the_query);

Do you think you could change this to:

$the_query = preg_replace("/\s(`|)ibf_(\S+?)(`|)([\s\.,]|$)/", " \\1".$this->obj['sql_tbl_prefix']."\\2\\3\\4", $the_query);



So it will have support for backticks around table names? Thanks. :thumbsup:

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...