Re: Function Parameter Problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



fathur rohman <fathur_edp@xxxxxxxxx> writes:
> i'v finished creating function generate_sjno(str_no
> char(12), int_reset int2). 
> when it called an error message raised, this is the
> illustration:

> baisdb=> select generate_sjno('20060130',6);
> ERROR:  function generate_sjno("unknown", integer)
> does not exist

It's not the char argument that's giving you trouble there, it's the int2.
I'd strongly suggest declaring the function to take plain int, else
you're going to be writing a lot of downcasts to int2.  int->int2 is not
an implicit conversion.

			regards, tom lane


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux