includes/sql_parse.php
changeset 527 21e11f564463
parent 526 b2fb50d572c7
child 536 218a627eb53e
--- 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;
     }