mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-12 05:22:35 +09:00
fix cubrid incr
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7048 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
85b29174f5
commit
5422844765
1 changed files with 7 additions and 7 deletions
|
|
@ -571,14 +571,13 @@
|
||||||
foreach($output->columns as $k => $v) $incr_columns[]= 'incr("'.$v['name'].'")';
|
foreach($output->columns as $k => $v) $incr_columns[]= 'incr("'.$v['name'].'")';
|
||||||
|
|
||||||
$query = sprintf('select %s from %s %s',join(',',$incr_columns), implode(',',$table_list), $condition);
|
$query = sprintf('select %s from %s %s',join(',',$incr_columns), implode(',',$table_list), $condition);
|
||||||
if(!$this->transaction_started) @cubrid_commit($this->fd);
|
|
||||||
|
|
||||||
return $result;
|
|
||||||
}else{
|
}else{
|
||||||
$query = sprintf("update %s set %s %s", implode(',',$table_list), implode(',',$column_list), $condition);
|
$query = sprintf("update %s set %s %s", implode(',',$table_list), implode(',',$column_list), $condition);
|
||||||
|
|
||||||
return $this->_query($query);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$result = $this->_query($query);
|
||||||
|
if($result && !$this->transaction_started) @cubrid_commit($this->fd);
|
||||||
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -594,8 +593,9 @@
|
||||||
$condition = $this->getCondition($output);
|
$condition = $this->getCondition($output);
|
||||||
|
|
||||||
$query = sprintf("delete from %s %s", implode(',',$table_list), $condition);
|
$query = sprintf("delete from %s %s", implode(',',$table_list), $condition);
|
||||||
|
$result = $this->_query($query);
|
||||||
return $this->_query($query);
|
if($result && !$this->transaction_started) @cubrid_commit($this->fd);
|
||||||
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue