Welcome Guest, Not a member yet? Register   Sign In
Oracle INSERTs failing, but no errors
#3

[eluser]jabbett[/eluser]
No luck with that. I'm trying to execute the query with PHP but completely outside CodeIgniter, and I'm encountering similar problems. I've discovered that my INSERT will work if I do a commit at the end, a la:

Code:
$c = OCILogon('USERNAME', 'PASSWORD', '//localhost/XE');
$q = 'INSERT INTO logins (userid, datein, sessionid, ipaddress) VALUES (\'abcd\', \'123\', \'1234\', \'127.0.0.1\')';

$stid = OCIParse($c, $q);
$r = oci_execute($stid, OCI_DEFAULT);

OCICommit($c);

OCILogoff($c);

I'm now hunting for a way to automatically commit with each execute.


Messages In This Thread
Oracle INSERTs failing, but no errors - by El Forum - 12-03-2007, 07:44 PM
Oracle INSERTs failing, but no errors - by El Forum - 12-03-2007, 07:52 PM
Oracle INSERTs failing, but no errors - by El Forum - 12-03-2007, 08:33 PM
Oracle INSERTs failing, but no errors - by El Forum - 12-03-2007, 08:35 PM
Oracle INSERTs failing, but no errors - by El Forum - 12-03-2007, 08:37 PM
Oracle INSERTs failing, but no errors - by El Forum - 12-03-2007, 08:59 PM
Oracle INSERTs failing, but no errors - by El Forum - 12-03-2007, 09:13 PM
Oracle INSERTs failing, but no errors - by El Forum - 12-03-2007, 09:37 PM
Oracle INSERTs failing, but no errors - by El Forum - 12-03-2007, 10:04 PM
Oracle INSERTs failing, but no errors - by El Forum - 12-03-2007, 10:14 PM
Oracle INSERTs failing, but no errors - by El Forum - 12-03-2007, 10:34 PM
Oracle INSERTs failing, but no errors - by El Forum - 12-03-2007, 10:51 PM
Oracle INSERTs failing, but no errors - by El Forum - 12-03-2007, 11:12 PM
Oracle INSERTs failing, but no errors - by El Forum - 12-03-2007, 11:32 PM
Oracle INSERTs failing, but no errors - by El Forum - 12-03-2007, 11:34 PM
Oracle INSERTs failing, but no errors - by El Forum - 04-21-2011, 01:54 PM
Oracle INSERTs failing, but no errors - by El Forum - 10-05-2014, 10:49 AM



Theme © iAndrew 2016 - Forum software by © MyBB