diff -r b2fb50d572c7 -r 21e11f564463 includes/sql_parse.php --- a/includes/sql_parse.php Wed Apr 09 19:27:02 2008 -0400 +++ b/includes/sql_parse.php Wed Apr 09 22:37:37 2008 -0400 @@ -50,11 +50,12 @@ /** * Constructor. * @param string If this contains newlines, it will be treated as the target SQL. If not, will be treated as a filename. + * @param string If true, force as raw SQL, i.e. don't treat as a filename no matter what */ - public function __construct($sql) + public function __construct($sql, $force_file = false) { - if ( strpos($sql, "\n") ) + if ( strpos($sql, "\n") || $force_file ) { $this->sql_string = $sql; }