Subject | blob - newbie question |
---|---|
Author | Almond |
Post date | 2003-02-17T18:37:22Z |
Hello, list.
This might be php specific. I want to use blob field to store image, the
sample I found is as follow:
ibase_connect('/path/to/employees.gdb', 'username', 'password');
$file = fopen("/path/to/test.gif", "r");
$blob = ibase_blob_import($file);
ibase_query("INSERT INTO employees (image, image_type) VALUES (?,
'image/gif')", $blob);
My question is, if the query fail, is there a dummy blob record in the
db. What would happen if a correct blob id is inserted but an update or
delete statement is failed.
Sorry if this question is old.
This might be php specific. I want to use blob field to store image, the
sample I found is as follow:
ibase_connect('/path/to/employees.gdb', 'username', 'password');
$file = fopen("/path/to/test.gif", "r");
$blob = ibase_blob_import($file);
ibase_query("INSERT INTO employees (image, image_type) VALUES (?,
'image/gif')", $blob);
My question is, if the query fail, is there a dummy blob record in the
db. What would happen if a correct blob id is inserted but an update or
delete statement is failed.
Sorry if this question is old.