install/includes/sql_parse.php
changeset 400 7eef739a5b81
parent 348 87e08a6e4fec
equal deleted inserted replaced
399:a3a9e463c62f 400:7eef739a5b81
    52    * @param string If this contains newlines, it will be treated as the target SQL. If not, will be treated as a filename.
    52    * @param string If this contains newlines, it will be treated as the target SQL. If not, will be treated as a filename.
    53    */
    53    */
    54   
    54   
    55   public function __construct($sql)
    55   public function __construct($sql)
    56   {
    56   {
    57     if ( strpos("\n", $sql) )
    57     if ( strpos($sql, "\n") )
    58     {
    58     {
    59       $this->sql_string = $sql;
    59       $this->sql_string = $sql;
    60     }
    60     }
    61     else
    61     else
    62     {
    62     {