Strange behaviour with replication and NO_BACKSLASH_ESCAPES mode

2007-08-06 Thread Andrea Gangini
Before posting this as a bug report, I seek help on the list, also in order to produce a more complete test case in the event this is effectively a bug. My configuration: - a master server running in NO_BACKSLASH_ESCAPES sql mode - a slave server also running in NO_BACKSLASH_ESCAPES sql mode R

Re: Update multiple tables strange behaviour

2007-02-19 Thread Manuel Vacelet
2007/2/15, Manuel Vacelet <[EMAIL PROTECTED]>: Hi all, I'm facing a strange behaviour with an UPDATE statement. I have a table like: +-+--+ | item_id | rank | +-+--+ |2812 |2 | | 13050 |4 | | 13051 |3 | | 13052 |1 | +-+---

Update multiple tables strange behaviour

2007-02-15 Thread Manuel Vacelet
Hi all, I'm facing a strange behaviour with an UPDATE statement. I have a table like: +-+--+ | item_id | rank | +-+--+ |2812 |2 | | 13050 |4 | | 13051 |3 | | 13052 |1 | +-+--+ And I want to switch items 2812 and 13052 rank

Re: MySQL 5.0.15 : strange behaviour with current_date

2005-12-07 Thread Santino
In "current_date - 7" the date is converted to a string and than to an Integer. Use adddate function: adddate(CURRENT_DATE(),interval -1 day) Santino At 11:37 +0100 7-12-2005, christophe nauwelaers wrote: Hi, For any reason, current_date doens't look to behave normally since a few days. I run r

MySQL 5.0.15 : strange behaviour with current_date

2005-12-07 Thread christophe nauwelaers
Hi, For any reason, current_date doens't look to behave normally since a few days. I run reports in a MySQL DB through sql queries and I use a statement like " ... invd between current_date - 7 and current_date - 1 ..." It always worked. I just noticed that this week's report was wrong. Indeed : c

Strange behaviour of USE INDEX(...)

2005-02-20 Thread Jocelyn Fournier
Hi, I was assuming USE INDEX was only telling MySQL which INDEX it needed to use, but it seems to be not always the case. With MySQL 4.1.10, USE INDEX(topic) for the following query seems to change the way the index is used. mysql> EXPLAIN SELECT numreponse FROM searchjoinhardwarefr13 WHERE id='

Re: strange behaviour in foreign keys

2004-05-28 Thread Victoria Reznichenko
[EMAIL PROTECTED] wrote: > > I've been running MySQL 4.0.x on a RH9 machine for some months and everything > was fine. I could create tables of type InnoDB and define FOREIGN KEY's all > was well. > > A few days ago it does not let me create tables with foreign keys anymore it > says some

strange behaviour in foreign keys

2004-05-28 Thread joao . miguel . ferreira . 19740720
Hello, I've been running MySQL 4.0.x on a RH9 machine for some months and everything was fine. I could create tables of type InnoDB and define FOREIGN KEY's all was well. A few days ago it does not let me create tables with foreign keys anymore it says something like "unable to create /da

Re: Strange behaviour of mysql 4.0.18 with create table query

2004-05-02 Thread Paul DuBois
At 23:13 +0200 5/2/04, Alessandro Sappia wrote: When I create a table with InnoDB there is a strange behaviour in it: mysql> CREATE TABLE prometeo_indirizzi_cliente ( -> indirizzi_cliente_id int(10) unsigned NOT NULL auto_increment, -> denominazione_indirizzo_id int(10)

Strange behaviour of mysql 4.0.18 with create table query

2004-05-02 Thread Alessandro Sappia
When I create a table with InnoDB there is a strange behaviour in it: mysql> CREATE TABLE prometeo_indirizzi_cliente ( -> indirizzi_cliente_id int(10) unsigned NOT NULL auto_increment, -> denominazione_indirizzo_id int(10) unsigned default NULL, -> cliente_id int(

Strange behaviour restoring from 3.x to 4.0

2004-02-25 Thread Michael Merwitz
I have a 3.x database that I backed up and restored to a 4.0 server. All worked fine, except for one issue: One table holds addresses, and when restoring it, would fail with an "unmatched quotes" message. On further examination, I found that it would occur on entries where the text was like "123

Re: Normal or strange behaviour of SQL query?

2003-01-14 Thread Peter van der Kamp
> I won't say you need to go back to high school, but maybe you need to > review how SQL works. You have no criterion for joining your two At least my knowledge of SQL needs an update. Although there are criteria for joining the two tables I realize that the way I specified them is wrong. > t

Re: Normal or strange behaviour of SQL query?

2003-01-14 Thread Keith C. Ivey
On 14 Jan 2003, at 15:28, Peter van der Kamp wrote: > What should be the result when I issue the following > query: > select naam_bron from bron, topic where > (bron.media="Book") > or (topic.naam_bron = bron.naam_bron and > topic.topic_code = "5.1"); > > Before posting my results I'll wait for

Normal or strange behaviour of SQL query?

2003-01-14 Thread Peter van der Kamp
Hello, I'm working with mySQL 3.23.32 under Solaris. I have a database with two tables 'bron' and 'topic'. Those tables are related via 'naam_bron'. Lets say that table 'bron' contains 100 records where column 'media' = 'Book' and table 'topic' contains 30 records where column 'topic_code' = '

Re: strange behaviour

2003-01-03 Thread Ken Menzel
ller and FBSD5 seeing the drives. Best of luck, Ken - Original Message - From: "Odhiambo Washington" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, January 03, 2003 2:10 AM Subject: strange behaviour > > I run mysql on FreeBSD and it's been givin

strange behaviour

2003-01-02 Thread Odhiambo Washington
I run mysql on FreeBSD and it's been giving me a lot of problems. Sometimes the load shoots up and some applications cannot access mysql server anymore. During such instances, when I run top, I get something like this: last pid: 57669; load averages: 1.40, 1.52, 1.52

Strange behaviour of MySQL-3.23.51

2002-10-21 Thread stephan.skusa
I have a database structure as follows (simplyfied) : CREATE TABLE masterTABLE ( pid int(11) unsigned NOT NULL default '0', c1id int(11) unsigned default NULL, c2id int(11) unsigned default NULL, value int(11) unsigned NOT NULL default '0', UNIQUE KEY pid2 (pid,c1id,c2id), UNIQUE KEY

Strange behaviour of MySQL 3.23.53

2002-10-21 Thread mysql
Ys (pid and pid2) from Table masterTABLE. This behaviour ist tested on MySQL 3.23.51 and now even on MySQL 3.23.53. TIA >How-To-Repeat: Code Sample above >Fix: ?? >Submitter-Id: >Originator: Stephan Skusa >Organization: Lippe-Net Online-Service >MySQL suppo

Re: Strange behaviour of mysqld after dropping a column

2002-08-28 Thread Sinisa Milivojevic
Cams Ismael writes: > Description: > A time ago I reported next bug: > > "The ALTER TABLE command behaves very strange when stopping and > restarting the MySQL server afterwards. I noticed this after having > rebooted my PC (which means that the MySql server is st

Strange behaviour of mysqld after dropping a column

2002-08-22 Thread Cams Ismael
mysql > quit; > C:\>net stop mysql > C:\>net start mysql > > mysql > select * from metaoid; > +---+---+-+ > | objid | tablename | oid | > +---+---+-+ > | 5 | test| 1 | >

strange behaviour of aggregate functions in if() clauses

2002-08-13 Thread Martin Waite
MySQL v3.23.49 linux Hi, We came across something strange here. select count(*), user from mysql.user; is illegal (ERROR 1140: Mixing of GROUP columns ... if there is no GROUP BY clause). But, select if( count(*) and user, 1, 0 ) from mysql.user; actually works. Is this a bug or

RE: Strange behaviour of mysqld after adding/dropping a column

2002-07-09 Thread Cams Ismael
[mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 09, 2002 3:02 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: Strange behaviour of mysqld after adding/dropping a column Cams Ismael writes: > Hello Sinisa, > > have you already found the origin of the problem ? How

RE: Strange behaviour of mysqld after adding/dropping a column

2002-07-09 Thread Sinisa Milivojevic
Cams Ismael writes: > Hello Sinisa, > > have you already found the origin of the problem ? How does the bugs get > fixed -> are they solved in patch releases or are they solved in a next > release of the MySQL server ? > > Kind regards, > Ismaël > Sorry to have lost your e-mail. If that is a

RE: Strange behaviour of mysqld after adding/dropping a column

2002-07-08 Thread Cams Ismael
ent: Tuesday, July 02, 2002 1:43 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: Strange behaviour of mysqld after adding/dropping a column Cams Ismael writes: > Hello Sinisa, > > this has nothing to do with services. I have also tried this without > cre

RE: Strange behaviour of mysqld after adding/dropping a column

2002-07-02 Thread Sinisa Milivojevic
Cams Ismael writes: > Hello Sinisa, > > this has nothing to do with services. I have also tried this without > creating a service and the result is the same. > Normally the services are also stopped automatically when logging of, so I > don't understand why I should stop it manually. Also I have

RE: Strange behaviour of mysqld after adding/dropping a column

2002-07-01 Thread Cams Ismael
after dropping/adding a column messes up your database ! Can you please check this ? Kind regards, Ismaël -Original Message- From: Sinisa Milivojevic [mailto:[EMAIL PROTECTED]] Sent: Monday, July 01, 2002 4:52 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: St

RE: Strange behaviour of mysqld after adding/dropping a column

2002-07-01 Thread Sinisa Milivojevic
Cams Ismael writes: > * I have indeed installed MySQL as a service. That's why I use 'net stop > mysql' and 'net start mysql' to start and stop the MySQL server. > > * I have done nothing special before rebooting my PC. The problem doesn't > seem to lay in rebooting the PC, but in stopping and

Re: Strange behaviour of mysqld after adding/dropping a column

2002-07-01 Thread Sinisa Milivojevic
Two questions : * have you installed MySQL as a service ?? * have you stopeed a service prior to rebooting ?? -- Regards, __ ___ ___ __ / |/ /_ __/ __/ __ \/ /Mr. Sinisa Milivojevic <[EMAIL PROTECTED]> / /|_/ / // /\ \/ /_/ / /__ MySQL AB, Fulltime Developer /_/ /_/\

Strange behaviour of mysqld after adding/dropping a column

2002-07-01 Thread Cams Ismael
gt; | 5 | test | 1 | > +---+---+-+ > > mysql > quit; > C:\>net stop mysql > C:\>net start mysql > > mysql > select * from metaoid; > +---+---+-+ > | objid | tablename

Re: Strange behaviour with SQL vars and order by

2002-04-23 Thread Gerald Clark
I see no column named Site.nome showing that it is wrong. ds wrote: >Hi, > >I'm having a strange problem using SQL vars (@variable) and an order by >expression. > >I have a query that returns a record for each day. >Each record has a date (data), a column with the daily total value >(uv_views)

Strange behaviour with SQL vars and order by

2002-04-22 Thread ds
Hi, I'm having a strange problem using SQL vars (@variable) and an order by expression. I have a query that returns a record for each day. Each record has a date (data), a column with the daily total value (uv_views) and other with the accumulated value until the current day (acc_views). The ot

Re: HANDLER strange behaviour

2001-11-19 Thread Sergei Golubchik
Hi! On Nov 19, Ian Collins wrote: > If you open a table using HANDLER, > > e.g, HANDLER MYTABLE OPEN; > > then during the course of your application truncate that table, > > e.g, TRUNCATE TABLE MYTABLE; > > then you get some really wierd behaviour (my wierd behaviour was the > applicatio

Re: strange behaviour

2001-11-19 Thread Ian Barwick
On Monday 19 November 2001 09:51, you wrote: > Hello, > started a new compiled MysqlDataBase on my local Machine > everything okay sofar. > added a ./bin/mysqladmin -u root password '' (password omitted) > no problem > I tried it several times to log in to create a database but only gettin

Re: HANDLER strange behaviour

2001-11-19 Thread Sinisa Milivojevic
Ian Collins writes: > If you open a table using HANDLER, > > e.g, HANDLER MYTABLE OPEN; > > then during the course of your application truncate that table, > > e.g, TRUNCATE TABLE MYTABLE; > > then you get some really wierd behaviour (my wierd behaviour was the > application rolling on a

strange behaviour

2001-11-19 Thread behrens
Hello, started a new compiled MysqlDataBase on my local Machine everything okay sofar. added a ./bin/mysqladmin -u root password '' (password omitted) no problem I tried it several times to log in to create a database but only getting this: >behrens@ws8:/home/behrens/behrens_local/mysql-3

HANDLER strange behaviour

2001-11-18 Thread Ian Collins
If you open a table using HANDLER, e.g, HANDLER MYTABLE OPEN; then during the course of your application truncate that table, e.g, TRUNCATE TABLE MYTABLE; then you get some really wierd behaviour (my wierd behaviour was the application rolling on a free in a completely different part of t

Strange behaviour (bug ?) when closing MySQL.

2001-07-16 Thread Fournier Jocelyn [Presence-PC]
Hi, I just experienced a strange bug in MySQL 3.23.39 I couldn't explain (and couldn't reproduce, it's why I post it on this list ;)) I misconfigured my my.cnf, so MySQL didn't found the host.frm. The strange behaviour is just after the normal shutdown of mysql : 010

Re:.37 INNO Strange behaviour after deleting a table

2001-05-09 Thread Heikki Tuuri
Andre, the strange behavior may have been due to the same bug Alex Baumeister reported, and for which I posted a fix on the mailing list a few minutes ago. After you had reloaded the table, did you insert, update, or delete any rows in the table? Or did you just do selects? Did you have any othe

Re:.37 INNO Strange behaviour after deleting a table

2001-05-08 Thread Andre . Konopka
Heikki, here are more details ... I' am running mysql-3.23.37 on a hp-ux11 box (with actual patches) I used the following configure options to compile MySQL: CXX=gcc CFLAGS="-fomit-frame-pointer -O6 -fpic" CXXFLAGS="-felide-constructors -fno-exceptions -fno-rtti -O6" ./configure --with-low-m

Re:.37 INNO Strange behaviour after deleting a table

2001-05-08 Thread Heikki Tuuri
Andre, it might be a bug in the multiversioning code in InnoDB. Can you describe in detail the situation: - What is the CREATE TABLE statement? - How many rows there are in the table? - How did you import the table? - Are you able to repeat the bug if you delete and drop the table, and create

.37 INNO Strange behaviour after deleting a table

2001-05-08 Thread Andre . Konopka
Hi, I accidently delete all my records from a table, but I always make backups!!! Okay, I deleted the (empty) table with drop table. Than I recreate the table and all the data mith a mysql batch job (from mysqldump) . No problem. Than I started the mysql UI and make some test queries. select *