Mailing List
Home
Forum Home
MySQL General - General MySQL discussion
MySQL++ - Programming with the C++ API to MySQL
MaxDB - Everything about MaxDB, formerly known as SAP DB
ODBC - ODBC with the MySQL Connector/ODBC driver
MySQL on Win32 - Runing MySQL on Windows 9x/Me/NT/2000/XP
Java Help - Mostly related to the MySQL Connector/J driver
Perl - Perl support for MySQL with DBI and DBD::mysql
GUI - MySQL GUI Tools
Announcement
Subjects
mysql openssl Question
ERROR 1045: Access denied for user: 'root@localhost ' (Using
password: NO)
Update one field with more fields from another table
Getting Identity after INSERT
ERROR 2002: Can 't connect to local MySQL server through socket
mysql test 4 1 fails with the gis test
MySQL Cluster Software
Downgrade Mysql from 4 to 3 23
Mysql 4 0 Oracle Stored Procedure Trigger Conversion
Can 't access mysql after kernel upgrade
Executing MySQL Commands From Within C Program
Comparing and writing out BLOBS
Preventing Duplicate Entries
FULLTEXT query format question
Strange behavior, Table Level Permission
Does the binary log enabling affect the MySQL performances?
mysql:it 's a db not a dbms how it 's possible?!
mysql have same function mthod as Oracle decode()
 
out of memory error when selecting column type longtext

out of memory error when selecting column type longtext

2006-07-07       - By A. Gerow

 Back
I've been using DBD-MySQL for a long time and I just ran across this
error.  So I get an error (two + exit code actually) when I execute the
following code.

   $sth = $sakai_dbh->prepare("SELECT s.SHORT_DESC ".
                              "FROM SAKAI_SITE s " .
                              "WHERE s.TYPE='course' ");
   $sth->execute();
   while (($curr) = $sth->fetchrow_array()) { ### WE DIE HERE ON THE
FIRST ITERATION! ###
      ...
   }
   $sth->finish();

s.SHORT_DESC is a of type LONGTEXT, and when I select other entities of
that type I get the same error.  Though, I can select anything not of
type LONGTEXT from this database no problem.
The error:
      Out of memory!
   Out of memory!
   Callback called exit.

I am using Perl 5.8.8, on Fedora Core 5 Linux 2.6, MySQL 4.1, Perl:DBI
1.51, and DBD-mysql-3 (See http://sql-3.ora-code.com).0006_1.  Modifying the database is out of the
question in this particular case.

Has anyone seen, fixed, or gotten around this?  Should I file a bug report?

Thanks in advance,
   .Gerow

--
Aaron Gerow
Open Source Developer
Digital Media - Information and Technology Services
Pacific Lutheran University
Tacoma, Washington


--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe:    http://lists.mysql.com/perl?unsub=mysql@(protected)