mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-24 21:59:55 +09:00
merge sandbox to trunk for 1.4.3.1
git-svn-id: http://xe-core.googlecode.com/svn/trunk@7659 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
289973781a
commit
200d63636c
195 changed files with 8166 additions and 3576 deletions
|
|
@ -23,6 +23,7 @@ class DBPostgresql extends DB
|
|||
var $password = null; ///< password
|
||||
var $database = null; ///< database
|
||||
var $prefix = 'xe'; ///< XE에서 사용할 테이블들의 prefix (한 DB에서 여러개의 XE설치 가능)
|
||||
var $comment_syntax = '/* %s */';
|
||||
|
||||
/**
|
||||
* @brief postgresql에서 사용될 column type
|
||||
|
|
@ -457,7 +458,7 @@ class DBPostgresql extends DB
|
|||
$size = 0;
|
||||
|
||||
$column_schema[] = sprintf('%s %s%s %s %s', $name, $this->column_type[$type], $size ?
|
||||
'(' . $size . ')' : '', $default ? "default '" . $default . "'" : '', $notnull ?
|
||||
'(' . $size . ')' : '', isset($default) ? "default '" . $default . "'" : '', $notnull ?
|
||||
'not null' : '');
|
||||
|
||||
if ($primary_key)
|
||||
|
|
@ -757,6 +758,7 @@ class DBPostgresql extends DB
|
|||
$query .= ' order by ' . implode(',', $index_list);
|
||||
}
|
||||
|
||||
$query .= (__DEBUG_QUERY__&1 && $output->query_id)?sprintf(' '.$this->comment_syntax,$this->query_id):'';
|
||||
$result = $this->_query($query);
|
||||
if ($this->isError())
|
||||
return;
|
||||
|
|
@ -865,6 +867,7 @@ class DBPostgresql extends DB
|
|||
}
|
||||
|
||||
$query = sprintf('%s offset %d limit %d', $query, $start_count, $list_count);
|
||||
$query .= (__DEBUG_QUERY__&1 && $output->query_id)?sprintf(' '.$this->comment_syntax,$this->query_id):'';
|
||||
|
||||
$result = $this->_query($query);
|
||||
if ($this->isError()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue