Excerpts from Miguel Beltran R.'s message of lun ago 02 14:03:08 -0400 2010:
> ON folio
> USING btree
> (CASE
> WHEN (strpos(folio.folio::text, '-'::text) - 1) > 0
> THEN substr(folio.folio::text, 1, strpos(folio.folio::text,
> '-'::text) - 1)::bigint
> ELSE folio.folio::bigint
> END );
Corrige el modelo.
--
Álvaro Herrera <alvherre(at)commandprompt(dot)com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support