REPLACE FUNCTION mydb.FROM_TZ (ts_str char(19),tz_str char(6) )
RETURNS timestamp(0) with time zone
SPECIFIC mydb.FROM_TZ
RETURNS NULL ON NULL INPUT
LANGUAGE SQL
CONTAINS SQL
DETERMINISTIC
SQL SECURITY DEFINER
COLLATION INVOKER INLINE TYPE 1
RETURN
CAST((ts_str||tz_str) as timestamp(0) with time zone);
select mydb.FROM_TZ(casT('2012-12-12 23:26:20' as char(19)),cast('-03:00' as char(6)))