git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7278 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
clench 2010-02-05 05:00:04 +00:00
parent 68f3ea0725
commit 06da98e3ed

View file

@ -317,7 +317,7 @@
/**
* @brief 결과를 fetch
**/
function _fetch($result, $output) {
function _fetch($result, $output = null) {
if(!$this->isConnected() || $this->isError() || !$result) return;
while($tmp = ibase_fetch_object($result)) {
@ -340,7 +340,7 @@
}
}
if($type == "text" || $type == "bigtext") {
if(($type == "text" || $type == "bigtext") && $tmp->{$key}) {
$blob_data = ibase_blob_info($tmp->{$key});
$blob_hndl = ibase_blob_open($tmp->{$key});
$tmp->{$key} = ibase_blob_get($blob_hndl, $blob_data[0]);
@ -1007,7 +1007,7 @@
}
}
if($type == "text" || $type == "bigtext") {
if(($type == "text" || $type == "bigtext") && $tmp->{$key}) {
$blob_data = ibase_blob_info($tmp->{$key});
$blob_hndl = ibase_blob_open($tmp->{$key});
$tmp->{$key} = ibase_blob_get($blob_hndl, $blob_data[0]);