Copy link to clipboard
Copied
I have run the exact same query in toad and in oci8 php and get the same results. In coldfusion the results are different. I made sure the query is not being cached. What could be the reason for this?
Copy link to clipboard
Copied
aofficer wrote:
What could be the reason for this?
Copy link to clipboard
Copied
Added to that list: different DB user. That's what - in my (admittedly not comprehensive ~) experience - usually causes these things with Oracle.
--
Adam
Copy link to clipboard
Copied
DB version 11
Copy link to clipboard
Copied
CF results Records=5845
Is this number the value of getUser_ac.recordCount?
Copy link to clipboard
Copied
When you say "CF Driver Oracle" are you refering to the Oracle Native JDBC 4 Driver that is only available in ColdFusion Enterprise and Developer? Or are you using the Oracle Thin Client, or heaven's forbid, the Oracle ODBC driver? Or possible some other Oracle driver?
Copy link to clipboard
Copied
In what way were they different?
Are you sure you were connected to the same database each time?
Copy link to clipboard
Copied
I am absolutely positive that it is the same database and table. The TOAD query is 100% accurate but cfquery misses about a hundred records. I would show you the results but its very long.
Copy link to clipboard
Copied
Do the table and/or login have any triggers associated with them?
Copy link to clipboard
Copied
If this were my problem, I'd identify the TOAD records that did not get returned by ColdFusion and try to figure out why. One thing I'd be looking for would be leading or trailing spaces in sibint.sibinst_fcst_code.