re: update/delete bug, please fix, thank you!

2003-03-04 Thread Victoria Reznichenko
On Saturday 01 March 2003 17:30, miniwar at netvigator dot com wrote:

 Description:

 Dear sir,
When I execute the command select * from user_info where regdate 
 now()- interval 9 day and phone_confirmed is null and email is null and
 last_onlinenow()-interval 10 day got 770 rows result. But when I execute
 update user_info set email=1 where regdate  now()- interval 9 day and
 phone_confirmed is null and email is null and last_onlinenow()-interval 10
 day got 0 rows is updated.

 Also delete from user_info where regdate  now()- interval 9 day and
 phone_confirmed is null and email is null and last_onlinenow()-interval 10
 day got nothing is deleted.

 Is there anything wrong on the update and delete command? Or it just a bug
 of MySQL server? Thank you!

It's a bug :(
Thank you for bug report!


-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___ ___   __
  /  |/  /_ __/ __/ __ \/ /Victoria Reznichenko
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
   ___/   www.mysql.com





-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php



update/delete bug, please fix, thank you!

2003-03-01 Thread root
Description:
Dear sir,
   When I execute the command select * from user_info where regdate  now()- interval 
9 day and phone_confirmed is null and email is null and last_onlinenow()-interval 10 
day got 770 rows result.
But when I execute update user_info set email=1 where regdate  now()- interval 9 
day and phone_confirmed is null and email is null and last_onlinenow()-interval 10 
day got 0 rows is updated.
 
Also delete from user_info where regdate  now()- interval 9 day and phone_confirmed 
is null and email is null and last_onlinenow()-interval 10 day got nothing is 
deleted.
 
Is there anything wrong on the update and delete command? Or it just a bug of MySQL 
server?
Thank you!
 
PS : I have tested it on MySQL Server 4.010, and 4.011.
-
| user_info |CREATE TABLE `user_info` (
  `uid` mediumint(8) unsigned NOT NULL auto_increment,
  `gid` mediumint(8) unsigned NOT NULL default '0',
  `phone_confirmed` char(0) default NULL,
  `username` varchar(20) binary NOT NULL default '',
  `nickname` varchar(20) binary NOT NULL default '',
  `title` varchar(12) NOT NULL default '´¶³q·|­û',
  `passwd` varchar(20) binary NOT NULL default '',
  `email` varchar(50) default NULL,
  `icq` int(10) unsigned NOT NULL default '0',
  `country` char(2) NOT NULL default 'HK',
  `district` varchar(20) NOT NULL default '',
  `sex` enum('M','F') NOT NULL default 'M',
  `occupation` varchar(20) NOT NULL default '',
  `interest` varchar(20) NOT NULL default '',
  `homepage` varchar(60) NOT NULL default '',
  `homepage_name` varchar(60) NOT NULL default '',
  `regdate` date NOT NULL default '-00-00',
  `plogo` varchar(132) NOT NULL default '',
  `signature` text NOT NULL,
  `ip` varchar(15) NOT NULL default '',
  `last_online` datetime NOT NULL default '-00-00 00:00:00',
  `last_topic` varchar(80) NOT NULL default '',
  `post_total` mediumint(8) unsigned NOT NULL default '0',
  `aver_on_time` smallint(5) unsigned NOT NULL default '0',
  `today_on_time` smallint(5) unsigned NOT NULL default '0',
  `last_31d_on_time` varchar(156) NOT NULL default '',
  `last_12m_on_time` varchar(60) NOT NULL default '',
  `about` text NOT NULL,
  PRIMARY KEY  (`username`),
  UNIQUE KEY `nickname` (`nickname`),
  UNIQUE KEY `uid` (`uid`),
  UNIQUE KEY `email` (`email`)
) TYPE=MyISAM
 
How-To-Repeat:

Fix:


Submitter-Id:  submitter ID
Originator:root
Organization:
 
MySQL support: [none | licence | email support | extended email support ]
Synopsis:  update/delete does not work
Severity:  
Priority:  
Category:  mysql
Class: 
Release:   mysql-4.0.11-gamma (Official MySQL RPM)

C compiler:2.95.3
C++ compiler:  2.95.3
Environment:

System: Linux ip-83-99-134-202.rev.dyxnet.com 2.4.18-14smp #1 SMP Wed Sep 4 12:34:47 
EDT 2002 i686 i686 i386 GNU/Linux
Architecture: i686

Some paths:  /usr/bin/perl /usr/bin/make /usr/bin/gmake /usr/bin/gcc /usr/bin/cc
GCC: Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man 
--infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking 
--host=i386-redhat-linux --with-system-zlib --enable-__cxa_atexit
Thread model: posix
gcc version 3.2 20020903 (Red Hat Linux 8.0 3.2-7)
Compilation info: CC='gcc'  CFLAGS='-O6 -fno-omit-frame-pointer -mpentium'  CXX='g++'  
CXXFLAGS='-O6 -fno-omit-frame-pointer  -felide-constructors 
-fno-exceptions -fno-rtti -mpentium'  LDFLAGS=''  ASFLAGS=''
LIBC: 
lrwxrwxrwx1 root root   14 Jan 23 11:25 /lib/libc.so.6 - 
libc-2.2.93.so
-rwxr-xr-x1 root root  1235468 Sep  6 07:12 /lib/libc-2.2.93.so
-rw-r--r--1 root root  2233342 Sep  6 06:59 /usr/lib/libc.a
-rw-r--r--1 root root  178 Sep  6 06:50 /usr/lib/libc.so
Configure command: ./configure '--disable-shared' '--with-mysqld-ldflags=-all-static' 
'--with-client-ldflags=-all-static' '--without-berkeley-db' '--with-innodb' 
'--without-vio' '--without-openssl' '--enable-assembler' '--enable-local-infile' 
'--with-mysqld-user=mysql' '--with-unix-socket-path=/var/lib/mysql/mysql.sock' 
'--prefix=/' '--with-extra-charsets=complex' '--exec-prefix=/usr' 
'--libexecdir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' 
'--localstatedir=/var/lib/mysql' '--infodir=/usr/share/info' 
'--includedir=/usr/include' '--mandir=/usr/share/man' '--with-embedded-server' 
'--enable-thread-safe-client' '--with-comment=Official MySQL RPM' 'CFLAGS=-O6 
-fno-omit-frame-pointer -mpentium' 'CXXFLAGS=-O6 -fno-omit-frame-pointer   
 -felide-constructors -fno-exceptions -fno-rtti -mpentium'


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble 

update/delete bug, please fix, thank you!

2003-03-01 Thread miniwar
Description:
Dear sir,
   When I execute the command select * from user_info where regdate  now()- interval 
9 day and phone_confirmed is null and email is null and last_onlinenow()-interval 10 
day got 770 rows result.
But when I execute update user_info set email=1 where regdate  now()- interval 9 
day and phone_confirmed is null and email is null and last_onlinenow()-interval 10 
day got 0 rows is updated.
 
Also delete from user_info where regdate  now()- interval 9 day and phone_confirmed 
is null and email is null and last_onlinenow()-interval 10 day got nothing is 
deleted.
 
Is there anything wrong on the update and delete command? Or it just a bug of MySQL 
server?
Thank you!
 
PS : I have tested it on MySQL Server 4.010, and 4.011.
-
| user_info |CREATE TABLE `user_info` (
  `uid` mediumint(8) unsigned NOT NULL auto_increment,
  `gid` mediumint(8) unsigned NOT NULL default '0',
  `phone_confirmed` char(0) default NULL,
  `username` varchar(20) binary NOT NULL default '',
  `nickname` varchar(20) binary NOT NULL default '',
  `title` varchar(12) NOT NULL default '´¶³q·|­û',
  `passwd` varchar(20) binary NOT NULL default '',
  `email` varchar(50) default NULL,
  `icq` int(10) unsigned NOT NULL default '0',
  `country` char(2) NOT NULL default 'HK',
  `district` varchar(20) NOT NULL default '',
  `sex` enum('M','F') NOT NULL default 'M',
  `occupation` varchar(20) NOT NULL default '',
  `interest` varchar(20) NOT NULL default '',
  `homepage` varchar(60) NOT NULL default '',
  `homepage_name` varchar(60) NOT NULL default '',
  `regdate` date NOT NULL default '-00-00',
  `plogo` varchar(132) NOT NULL default '',
  `signature` text NOT NULL,
  `ip` varchar(15) NOT NULL default '',
  `last_online` datetime NOT NULL default '-00-00 00:00:00',
  `last_topic` varchar(80) NOT NULL default '',
  `post_total` mediumint(8) unsigned NOT NULL default '0',
  `aver_on_time` smallint(5) unsigned NOT NULL default '0',
  `today_on_time` smallint(5) unsigned NOT NULL default '0',
  `last_31d_on_time` varchar(156) NOT NULL default '',
  `last_12m_on_time` varchar(60) NOT NULL default '',
  `about` text NOT NULL,
  PRIMARY KEY  (`username`),
  UNIQUE KEY `nickname` (`nickname`),
  UNIQUE KEY `uid` (`uid`),
  UNIQUE KEY `email` (`email`)
) TYPE=MyISAM

How-To-Repeat:

Fix:


Submitter-Id:  submitter ID
Originator:root
Organization:
 
MySQL support: [none | licence | email support | extended email support ]
Synopsis:  update/delete bug
Severity:  
Priority:  
Category:  mysql
Class: 
Release:   mysql-4.0.11-gamma (Official MySQL RPM)

C compiler:2.95.3
C++ compiler:  2.95.3
Environment:

System: Linux ip-83-99-134-202.rev.dyxnet.com 2.4.18-14smp #1 SMP Wed Sep 4 12:34:47 
EDT 2002 i686 i686 i386 GNU/Linux
Architecture: i686

Some paths:  /usr/bin/perl /usr/bin/make /usr/bin/gmake /usr/bin/gcc /usr/bin/cc
GCC: Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man 
--infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking 
--host=i386-redhat-linux --with-system-zlib --enable-__cxa_atexit
Thread model: posix
gcc version 3.2 20020903 (Red Hat Linux 8.0 3.2-7)
Compilation info: CC='gcc'  CFLAGS='-O6 -fno-omit-frame-pointer -mpentium'  CXX='g++'  
CXXFLAGS='-O6 -fno-omit-frame-pointer  -felide-constructors 
-fno-exceptions -fno-rtti -mpentium'  LDFLAGS=''  ASFLAGS=''
LIBC: 
lrwxrwxrwx1 root root   14 Jan 23 11:25 /lib/libc.so.6 - 
libc-2.2.93.so
-rwxr-xr-x1 root root  1235468 Sep  6 07:12 /lib/libc-2.2.93.so
-rw-r--r--1 root root  2233342 Sep  6 06:59 /usr/lib/libc.a
-rw-r--r--1 root root  178 Sep  6 06:50 /usr/lib/libc.so
Configure command: ./configure '--disable-shared' '--with-mysqld-ldflags=-all-static' 
'--with-client-ldflags=-all-static' '--without-berkeley-db' '--with-innodb' 
'--without-vio' '--without-openssl' '--enable-assembler' '--enable-local-infile' 
'--with-mysqld-user=mysql' '--with-unix-socket-path=/var/lib/mysql/mysql.sock' 
'--prefix=/' '--with-extra-charsets=complex' '--exec-prefix=/usr' 
'--libexecdir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' 
'--localstatedir=/var/lib/mysql' '--infodir=/usr/share/info' 
'--includedir=/usr/include' '--mandir=/usr/share/man' '--with-embedded-server' 
'--enable-thread-safe-client' '--with-comment=Official MySQL RPM' 'CFLAGS=-O6 
-fno-omit-frame-pointer -mpentium' 'CXXFLAGS=-O6 -fno-omit-frame-pointer   
 -felide-constructors -fno-exceptions -fno-rtti -mpentium'


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: