pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
There is a different cast than ::MyOtherType() ?
3+ messages / 3 participants
[nested] [flat]

* There is a different cast than ::MyOtherType() ?
@ 2007-02-16 12:30 Ezequias Rodrigues da Rocha <ezequias.rocha@gmail.com>
  2007-02-16 14:34 ` Re: There is a different cast than ::MyOtherType() ? Alvaro Herrera <alvherre@commandprompt.com>
  2007-02-16 14:34 ` Re: There is a different cast than ::MyOtherType() ? A. Kretschmer <andreas.kretschmer@schollglas.com>
  0 siblings, 2 replies; 3+ messages in thread

From: Ezequias Rodrigues da Rocha @ 2007-02-16 12:30 UTC (permalink / raw)
  To: pgsql-sql

Hi list,

My Delphi app does not suport this kind of cast:

Select id, desc::Varchar(50) from myTable

I don't know if it is a odbc problem or a Delphi problem (or a BDE problem).

*Even though I would like to try another cast.

Does anyone is avaliable to help me ?
*--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
                                  Atenciosamente (Sincerely)
                        Ezequias Rodrigues da Rocha
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
A pior das democracias ainda é melhor do que a melhor das ditaduras
The worst of democracies is still better than the better of dictatorships
http://ezequiasrocha.blogspot.com/

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: There is a different cast than ::MyOtherType() ?
  2007-02-16 12:30 There is a different cast than ::MyOtherType() ? Ezequias Rodrigues da Rocha <ezequias.rocha@gmail.com>
@ 2007-02-16 14:34 ` Alvaro Herrera <alvherre@commandprompt.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Alvaro Herrera @ 2007-02-16 14:34 UTC (permalink / raw)
  To: Ezequias Rodrigues da Rocha <ezequias.rocha@gmail.com>; +Cc: pgsql-sql

Ezequias Rodrigues da Rocha escribió:
> Hi list,
> 
> My Delphi app does not suport this kind of cast:
> 
> Select id, desc::Varchar(50) from myTable

Try

select id, cast(desc as varchar(50)) from yourTable

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: There is a different cast than ::MyOtherType() ?
  2007-02-16 12:30 There is a different cast than ::MyOtherType() ? Ezequias Rodrigues da Rocha <ezequias.rocha@gmail.com>
@ 2007-02-16 14:34 ` A. Kretschmer <andreas.kretschmer@schollglas.com>
  1 sibling, 0 replies; 3+ messages in thread

From: A. Kretschmer @ 2007-02-16 14:34 UTC (permalink / raw)
  To: pgsql-sql

am  Fri, dem 16.02.2007, um  9:30:14 -0300 mailte Ezequias Rodrigues da Rocha folgendes:
> Hi list,
> 
> My Delphi app does not suport this kind of cast:
> 
> Select id, desc::Varchar(50) from myTable

This is PG-only-style, the spec is:

select id, cast(desc as varchar(50)) from mytable;


But i'm not sure if 'desc' is a reserved key-word.


Andreas
-- 
Andreas Kretschmer
Kontakt:  Heynitz: 035242/47150,   D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID:   0x3FFF606C, privat 0x7F4584DA   http://wwwkeys.de.pgp.net



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2007-02-16 14:34 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2007-02-16 12:30 There is a different cast than ::MyOtherType() ? Ezequias Rodrigues da Rocha <ezequias.rocha@gmail.com>
2007-02-16 14:34 ` Alvaro Herrera <alvherre@commandprompt.com>
2007-02-16 14:34 ` A. Kretschmer <andreas.kretschmer@schollglas.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox