Mailing List
Home
Forum Home
MySQL General - General MySQL discussion
MaxDB - Everything about MaxDB, formerly known as SAP DB
MySQL on Win32 - Runing MySQL on Windows 9x/Me/NT/2000/XP
MySQL++ - Programming with the C++ API to MySQL
ODBC - ODBC with the MySQL Connector/ODBC driver
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
mysql:it 's a db not a dbms how it 's possible?!
Does the binary log enabling affect the MySQL performances?
Strange behavior, Table Level Permission
FULLTEXT query format question
Preventing Duplicate Entries
Comparing and writing out BLOBS
Executing MySQL Commands From Within C Program
Can 't access mysql after kernel upgrade
Mysql 4 0 Oracle Stored Procedure Trigger Conversion
Downgrade Mysql from 4 to 3 23
MySQL Cluster Software
mysql test 4 1 fails with the gis test
ERROR 2002: Can 't connect to local MySQL server through socket
Getting Identity after INSERT
Update one field with more fields from another table
ERROR 1045: Access denied for user: 'root@localhost ' (Using
password: NO)
mysql have same function mthod as Oracle decode()
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
ERROR 1037 caused by simple query

ERROR 1037 caused by simple query

2005-02-14       - By Markus Hoenicka

 Back
Reply:     1     2     3     4     5  

Hi all,

I'm struggling to set up MySQL on WinXP, with limited success so far.  I want to
use it as the backend for an application that can use either MySQL, PostgreSQL,
or SQLite for data storage.

At least one query type generated by my app fails on MySQL on WinXP. The queries
are ok in MySQL 4.1.9 on FreeBSD, MySQL 4.0.23 on Linux, PostgreSQL on
Windows/Linux/FreeBSD, and SQLite on Windows/Linux/FreeBSD. They used to be ok
in MySQL 3.23 on Windows and other platforms too. However, on WinXP at least
MySQL 4.1.8 and 4.1.9 appear to be broke.

I've got a table with 33 columns. The following query retrieves the dataset with
the unique column value refdb_id=1 without problems:

mysql> SELECT DISTINCT * FROM t_refdb WHERE refdb_id='1' ORDER BY refdb_id;

The following query should retrieve the same dataset (all ids are >0), but it
fails:

mysql> SELECT DISTINCT * from t_refdb WHERE refdb_id<'2' ORDER BY refdb_id;
ERROR 1037 (HY001): Out of memory; restart server and try again (needed 217080 b
ytes)

The error is independent of the value of the comparison. <'10' or <'100' or even
>'10' all cause the same error (but in these cases the DISTINCT and ORDER BY
clauses would make sense, that's why I mention this).

If I leave out either the DISTINCT or the ORDER BY clause, the query works
again:

mysql> SELECT * FROM t_refdb WHERE refdb_id<'2' ORDER BY refdb_id;
mysql> SELECT DISTINCT * FROM t_refdb WHERE refdb_id<'2';

Once again, keep in mind that *all* of the above queries work with MySQL on
other platforms and with other database engines on all platforms.

Is there anything wrong with this type of queries?

Another oddity of the windows version is that the command line client mysql
appears to be limited to SQL queries of no more than 256 characters. I can't
enter more than that. This limitation is also missing elsewhere.

Platform info: WinXP Professional Version 2002, Service Pack 2, 256MB RAM, MySQL
Versions 4.1.8 or 4.1.9, set up for a developer box with MyISAM tables only,
UTF8 as default encoding, other values left to their defaults to the best of my
knowledge.

Any clues?

regards,
Markus

--
Markus Hoenicka
markus.hoenicka@(protected)
(Spam-protected email: replace the quadrupeds with "mhoenicka")
http://www.mhoenicka.de


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


Earn $52 per hosting referral at Lunarpages.