15 Paź
2003
15 Paź
'03
17:20
Witam.
CREATE FUNCTION inet2int (inet) RETURNS bigint AS ' begin return to_number(split_part(host($1),''.'',1),''999'')*256^3 +to_number(split_part(host($1),''.'',2),''999'')*256^2 +to_number(split_part(host($1),''.'',3),''999'')*256 +to_number(split_part(host($1),''.'',4),''999''); end; ' LANGUAGE plpgsql;
ERROR: Unrecognized language specified in a CREATE FUNCTION: 'plpgsql'. Pre-installed languages are SQL, C, and internal. Additional languages may be installed using 'createlang'.
--
Łukasz Jarosław Mozer
http://www.baseciq.org
mailto: lukasz@rulez.pl