Index: trunk/phase3/maintenance/ora/tables.sql |
— | — | @@ -163,7 +163,7 @@ |
164 | 164 | |
165 | 165 | CREATE TABLE externallinks ( |
166 | 166 | el_from INTEGER NOT NULL REFERENCES page(page_id) ON DELETE CASCADE, |
167 | | - el_to CLOB NOT NULL, |
| 167 | + el_to VARCHAR(2048) NOT NULL, |
168 | 168 | el_index CLOB NOT NULL |
169 | 169 | ); |
170 | 170 | -- XXX CREATE INDEX externallinks_from_to ON externallinks (el_from,el_to); |
Index: trunk/phase3/includes/DatabaseOracle.php |
— | — | @@ -331,7 +331,11 @@ |
332 | 332 | } |
333 | 333 | } |
334 | 334 | |
335 | | - $bval = oci_new_descriptor($this->mConn, OCI_D_LOB); |
| 335 | + if (($bval = oci_new_descriptor($this->mConn, OCI_D_LOB)) === false) { |
| 336 | + $e = oci_error($stmt); |
| 337 | + throw new DBUnexpectedError($this, "Cannot create LOB descriptor: " . $e['message']); |
| 338 | + } |
| 339 | + |
336 | 340 | if (strlen($returning)) |
337 | 341 | oci_bind_by_name($stmt, ":bval", $bval, -1, SQLT_BLOB); |
338 | 342 | |