Skip site navigation (1) Skip section navigation (2)

Re: [HACKERS] Re: [QUESTIONS] MySQL benchmark page

From: sferac(at)bo(dot)nettuno(dot)it
To: "Thomas G(dot) Lockhart" <lockhart(at)alumni(dot)caltech(dot)edu>
Cc: Luuk de Boer <luuk_de_boer(at)pi(dot)net>, Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>, hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] Re: [QUESTIONS] MySQL benchmark page
Date: 1998-03-17 09:56:58
Message-ID: Pine.LNX.3.96.980317094651.8084B-100000@nero (view raw or flat)
Thread:
Lists: pgsql-hackers
On Mon, 16 Mar 1998, Thomas G. Lockhart wrote:

> > > first the concatenation with ||
> > > the test is select 'abc' || 'def'
> > > and that's not working in postgres. In other db's it's working.
> > 
> > Looks like we have a type problem here.  That type system again.
> 
> "that type system" is A Good Thing(tm).
> 
> tgl=> select 'abc' || 'def';
> ERROR:  There is more than one operator '||'
>  for types 'unknown' and 'unknown'
>  You will have to retype this query using an explicit cast

This sentence doesn't work on MySQL too, take a look:

mysql> select 'abc' || 'def';
1 row in set (0.00 sec)
+----------------+
| 'abc' || 'def' |
+----------------+
|              0 |
+----------------+
The result should be 'abcdef' not 0 !!


In response to

Responses

pgsql-hackers by date

Next:From: Pedro J. LoboDate: 1998-03-17 10:40:01
Subject: Re: [HACKERS] Alpha initdb fixed!
Previous:From: W. Y. LUDate: 1998-03-17 08:52:00
Subject: unsubscribe

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group