[eluser]dignityandshame[/eluser]
So this morning I was playing around and somehow it started incrementing by 4 instead of 3. It's back to 3 now and I'm not sure if I did anything to cause it to jump to 4, but...kinda creepy.
Here's the test code I've been using:
Code:
echo "Before!<br>";
$sql = 'select testlog.schedule_seq.nextval from dual';
echo $sql."<br>";
$query = $this->db->query($sql);
echo "After!<br>";
$row = $query->row();
echo "nextval: ".$row->NEXTVAL."<br>";
And the output:
Code:
Before!
select testlog.schedule_seq.nextval from dual
After!
nextval: 169
And then a refresh of the page:
Code:
Before!
select testlog.schedule_seq.nextval from dual
After!
nextval: 172
Here's the php/oci8 code I used:
Code:
$conn = oci_connect('xxxxx', 'xxxxx', '//xxx.xxx.xxx.xxx/xxx');
$query = 'select testlog.schedule_seq.nextval from dual';
$stid = oci_parse($conn, $query);
$r = oci_execute($stid, OCI_DEFAULT);
while ($row = oci_fetch_row($stid)) {
foreach($row as $item) {
echo $item."<br>";
}
}
oci_close($conn);
which returns this:
and after a refresh, this: