RE: [PHP-DB] FATAL: emalloc(): Unable to allocate 2147483599 bytes

From: Date: Thu, 22 Mar 2001 09:11:08 +0000
Subject: RE: [PHP-DB] FATAL: emalloc(): Unable to allocate 2147483599 bytes
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-7692@lists.php.net to get a copy of this message
Hi Denis, try this one: $r=odbc_exec($x,"select 'a' as a_leter from some_table"); or $r=odbc_exec($x,"select \"a\" as a_leter from some_table"); which you prefer, but you have to escape the "" within a ""-String !! Hope this solves your problem. Greetinx, Mike Michael Rudel - Web-Development, Systemadministration - _______________________________________________________________ Suchtreffer AG Bleicherstraße 20 D-78467 Konstanz Germany fon: +49-(0)7531-89207-17 fax: +49-(0)7531-89207-13 e-mail: mailto:mru@suchtreffer.de internet: http://www.suchtreffer.de _______________________________________________________________ > -----Original Message----- > From: Denis Eltsov [mailto:eltsov@lumena.ru] > Sent: Thursday, March 22, 2001 8:00 AM > To: php-db@lists.php.net > Subject: [PHP-DB] FATAL: emalloc(): Unable to allocate > 2147483599 bytes > > > I use IIS5 - php4 (as CGI) - odbc connection to Access 2000 > > Everything was fine until I install MS SQL 2000 to the same machine. > > After this I receive such a message > > > > FATAL: emalloc(): Unable to allocate 2147483599 bytes > > > > every time I try to execute such a program > > <? > > $x=odbc_connect("oh","",""); > > $r=odbc_exec($x,"select "a" as a_leter from some_table"); > > ?> > > or > > <? > > $x=odbc_connect("oh","",""); > > $r=odbc_exec($x,"select format("dd.mm.yyyy",date_field) from > some_table"); > > ?> > > > > Best regards Denis Eltsov > > > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net > For additional commands, e-mail: php-db-help@lists.php.net > To contact the list administrators, e-mail: > php-list-admin@lists.php.net >

« previous php.db (#7692) next »