List:General Discussion« Previous MessageNext Message »
From:tobiasb Date:October 6 1999 6:08am
Subject:Trailing blanks get chopped away from 'strings'
View as plain text  
>Description:
	I have some strings ending with blank characters. They are
	efficiently removed. The trailing blanks are relevant.

>How-To-Repeat:
mysql> create table blabbel ( blubbel varchar(255) );
Query OK, 0 rows affected (0.07 sec)

mysql> insert into blabbel values ('blubbel ');
Query OK, 1 row affected (0.04 sec)

mysql> select * from blabbel where blubbel='blubbel ';
	+---------+
	| blubbel |
	+---------+
	| blubbel |
	+---------+
	1 row in set (0.00 sec)

	mysql> select * from blabbel where blubbel='blubbel';
	+---------+
	| blubbel |
	+---------+
	| blubbel |
	+---------+
	1 row in set (0.00 sec)

	mysql> select * from blabbel where blubbel='blubbel      ';
	+---------+
	| blubbel |
	+---------+
	| blubbel |
	+---------+
	1 row in set (0.00 sec)


>Fix:
	Sorry, studying the MySQL source code is far beyond the time I have.

>Submitter-Id:	<submitter ID>
>Originator:	Tobias Brox
>Organization: Funcom
  Tobias Brox (alias TobiX) - sysguy - +4722925871 - http://www.funcom.com/
  If an _urgent_ email is not acted upon within 10 minutes, you might try
  a _short_ mail to sms@stripped
>
>MySQL support: none
>Synopsis:	Trailing blanks get chopped away from 'strings'
>Severity:	non-critical
>Priority:	low
>Category:	mysql
>Class:		sw-bug
>Release:	mysql-3.22.22 (Source distribution)

>Environment:
	
System: Linux tobiasb.funcom.com 2.2.3 #5 Sun Mar 14 17:59:40 MET 1999 i586 unknown
Architecture: i586

Some paths:  /usr/local/funweb/bin/perl /usr/bin/make /usr/bin/gmake /usr/bin/gcc
/usr/bin/cc
GCC: Reading specs from /usr/lib/gcc-lib/i386-linux/2.7.2.1/specs
gcc version 2.7.2.1
Compilation info: CC='gcc'  CFLAGS=''  CXX='c++'  CXXFLAGS=''  LDFLAGS=''
Configure command: ./configure  --prefix /usr/local
Perl: This is perl, version 5.004_04 built for i686-linux

Thread
Trailing blanks get chopped away from 'strings'tobiasb6 Oct
  • Re: Trailing blanks get chopped away from 'strings'Faisal Nasim6 Oct
    • Re: Trailing blanks get chopped away from 'strings'Tobias Brox7 Oct
      • Re: Trailing blanks get chopped away from 'strings'Bob Kline7 Oct
        • Re: Trailing blanks get chopped away from 'strings'Tobias Brox7 Oct
      • Re: Trailing blanks get chopped away from 'strings'Michael Widenius7 Oct
    • Re: Trailing blanks get chopped away from 'strings'Faisal Nasim7 Oct
      • Re: Trailing blanks get chopped away from 'strings'Michael Widenius8 Oct
    • Re: Trailing blanks get chopped away from 'strings'Tonu Samuel8 Oct
    • question on perl DBI _ListDBs functionJames H. Thompson8 Oct
  • Re: Trailing blanks get chopped away from 'strings'Carsten H. Pedersen6 Oct
  • Trailing blanks get chopped away from 'strings'Jani Tolonen6 Oct
    • Trailing blanks get chopped away from 'strings'Jani Tolonen6 Oct