Skip to content

Commit eec7a88

Browse files
committed
fix: OCI8 getFieldData() returns incorrect default value
1 parent ebc3c27 commit eec7a88

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

system/Database/OCI8/Connection.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -315,11 +315,7 @@ protected function _fieldData(string $table): array
315315

316316
$retval[$i]->max_length = $length;
317317

318-
$default = $query[$i]->DATA_DEFAULT;
319-
if ($default === null && $query[$i]->NULLABLE === 'N') {
320-
$default = '';
321-
}
322-
$retval[$i]->default = $default;
318+
$retval[$i]->default = $query[$i]->DATA_DEFAULT;
323319
$retval[$i]->nullable = $query[$i]->NULLABLE === 'Y';
324320
}
325321

0 commit comments

Comments
 (0)