Show
Ignore:
Timestamp:
04/07/08 10:25:02 (6 months ago)
Author:
miker
Message:

adding "first5" function to trim zip codes

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/Open-ILS/src/sql/Pg/005.schema.actors.sql

    r9214 r9243  
    511511CREATE INDEX actor_org_address_org_unit_idx ON actor.org_address (org_unit); 
    512512 
     513CREATE OR REPLACE FUNCTION public.first5 ( TEXT ) RETURNS TEXT AS $$ 
     514        SELECT SUBSTRING( $1, 1, 5); 
     515$$ LANGUAGE SQL; 
     516 
    513517COMMIT;