/**escapes a list of integers; uses escapeInt for each element; automatically adds parentheses*/
public function escapeIntList(array $il)
{
+ if(count($il)==0)return "(NULL)";
$r="(";
$b=false;
foreach($il as $i){
//if we are in write mode and there is no grouping
//(no grouping is a PGSql limitation)
//then append "FOR UPDATE" to tell the DB we will be writing
- if($this->transmode && $orderby!="")
- $query.=" FOR UPDATE";
+ //currently turned off, there are too many don'ts
+// if($this->transmode && $orderby=="")
+// $query.=" FOR UPDATE";
$res=@pg_query($this->dbhdl,$query);
if($res===false){
$this->db_debug_error("select",$query);