problem with codeigniter using odbc database driver
Posted
by Nir Gavish
on Stack Overflow
See other posts from Stack Overflow
or by Nir Gavish
Published on 2010-04-27T04:40:45Z
Indexed on
2010/04/27
4:43 UTC
Read the original article
Hit count: 664
i’ve run into a curious problem with codeigniter's odbc driver. i’m connecting from a linux machine to an MSSQL 2008 machine using FreeTDS.
while i get that the ‘num_rows’ function always returns -1, and that is fully a database/driver issue - for some reason when i try to create a ->result(), the whole application crashes (error 500, sometimes just a blank page), if i’m lucky, i get an error message informing me that the application died because it tried to allocated 2 terrabytes of memory(!).
This happens irregularly, ie: every few refreshes. sometimes it runs fine, sometimes the page returns error 500 and sometimes it gives the memory allocation error - in any case it’s not really something that can be reproduced with percision, and the queries are SUPER simple.
ideas anyone?
© Stack Overflow or respective owner