Re: [PHP-DB] mysql 4.1-4.0

2005-02-02 Thread Martin Norland
blackwater dev wrote:
Why is this query handled differently in 4.1?
4.0
select lower(concat(last_name,id)) from client where prim_id=1
returns johnson1
4.1
same query returns Johnson1
Why don't the lower work in 4.1 when you concatonate with a number?
No idea.
select concat(lower(last_name),id) from client where prim_id=1;
Cheers,
--
- Martin Norland, Database / Web Developer, International Outreach x3257
The opinion(s) contained within this email do not necessarily represent 
those of St. Jude Children's Research Hospital.

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP-DB] mysql 4.1-4.0

2005-02-02 Thread blackwater dev
yeah, that is what I did to fix it...just curious why the problem was
there in the first place.


On Wed, 02 Feb 2005 14:40:55 -0600, Martin Norland
<[EMAIL PROTECTED]> wrote:
> blackwater dev wrote:
> > Why is this query handled differently in 4.1?
> >
> > 4.0
> > select lower(concat(last_name,id)) from client where prim_id=1
> > returns johnson1
> >
> > 4.1
> > same query returns Johnson1
> >
> > Why don't the lower work in 4.1 when you concatonate with a number?
> No idea.
> 
> select concat(lower(last_name),id) from client where prim_id=1;
> 
> Cheers,
> --
> - Martin Norland, Database / Web Developer, International Outreach x3257
> The opinion(s) contained within this email do not necessarily represent
> those of St. Jude Children's Research Hospital.
> 
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
>

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] mysql 4.1-4.0

2005-02-02 Thread Bastien Koert
precedence of function order may have changed
bastien
From: blackwater dev <[EMAIL PROTECTED]>
Reply-To: blackwater dev <[EMAIL PROTECTED]>
To: php-db@lists.php.net
Subject: Re: [PHP-DB] mysql 4.1-4.0
Date: Wed, 2 Feb 2005 15:46:25 -0500
yeah, that is what I did to fix it...just curious why the problem was
there in the first place.
On Wed, 02 Feb 2005 14:40:55 -0600, Martin Norland
<[EMAIL PROTECTED]> wrote:
> blackwater dev wrote:
> > Why is this query handled differently in 4.1?
> >
> > 4.0
> > select lower(concat(last_name,id)) from client where prim_id=1
> > returns johnson1
> >
> > 4.1
> > same query returns Johnson1
> >
> > Why don't the lower work in 4.1 when you concatonate with a number?
> No idea.
>
> select concat(lower(last_name),id) from client where prim_id=1;
>
> Cheers,
> --
> - Martin Norland, Database / Web Developer, International Outreach x3257
> The opinion(s) contained within this email do not necessarily represent
> those of St. Jude Children's Research Hospital.
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP-DB] mysql 4.1-4.0

2005-02-02 Thread Bastien Koert
try
select concat(lower(last_name),id) from client where prim_id=1
bastien

From: blackwater dev <[EMAIL PROTECTED]>
Reply-To: blackwater dev <[EMAIL PROTECTED]>
To: php-db@lists.php.net
Subject: [PHP-DB] mysql 4.1-4.0
Date: Wed, 2 Feb 2005 15:35:08 -0500
Why is this query handled differently in 4.1?
4.0
select lower(concat(last_name,id)) from client where prim_id=1
returns johnson1
4.1
same query returns Johnson1
Why don't the lower work in 4.1 when you concatonate with a number?
Thanks!
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php