• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

problem with a pl sql function

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I'm having problems with the return type of the following function:

CREATE OR REPLACE
FUNCTION xxx
(
idX NUMBER,
idY NUMBER)
RETURN DATE
IS
BEGIN
RETURN (SYSDATE);
END xxx;

--What is wrong with this code? it seems that if the return type is different from the parameters type then this result in a error.. is there an solution for this? does anyone knows?
I can't change the return type and the parameters type..
 
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Seemed ok to me, but dont know why you need the parameters.

 
fabianoSouza Souza
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
well,, should be something with sqlDeveloper.. I don't know
 
Agador Paloi
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
works just fine without the parameters :
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic