return str_replace("'","''",$s);
}
- /**
- * USE INDEX clause
- */
- function useIndexClause( $index ) {
- return "";
- }
-
/**
* REPLACE query wrapper
* PostgreSQL simulates this with a DELETE followed by INSERT
return $sql;
}
- /**
- * Returns an SQL expression for a simple conditional.
- *
- * @param $cond String: SQL expression which will result in a boolean value
- * @param $trueVal String: SQL expression to return if true
- * @param $falseVal String: SQL expression to return if false
- * @return string SQL fragment
- */
- function conditional( $cond, $trueVal, $falseVal ) {
- return " (CASE WHEN $cond THEN $trueVal ELSE $falseVal END) ";
- }
-
/**
* Should determine if the last failure was due to a deadlock
* @return bool
return "[http://www.microsoft.com/sql/default.mspx Microsoft SQL Server 2005 Home]";
}
+ /**
+ * @return String: Database type for use in messages
+ */
+ function getDBtypeForMsg() {
+ return 'Microsoft SQL Server';
+ }
+
/**
* @return string Version information from the database
*/
return $sql;
}
- /**
- * not done
- */
- public function setTimeout($timeout) { return; }
-
/**
* How lagged is this slave?
*/
}
}
- /**
- * No-op lock functions
- */
- public function lock( $lockName, $method ) {
- return true;
- }
- public function unlock( $lockName, $method ) {
- return true;
- }
-
public function getSearchEngine() {
return "SearchEngineDummy";
}
-
- /** No-op */
- public function setBigSelects( $value = true ) {}
}
/**