473,473 Members | 1,742 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

ERROR: SELECT query has no destination for result data;

66 New Member
Expand|Select|Wrap|Line Numbers
  1. CREATE OR REPLACE FUNCTION public.f_customerlogininfo
  2. (
  3.   varchar,
  4.   varchar,
  5.   varchar
  6. )
  7. RETURNS SETOF public.v_customerlogininfo AS'
  8. declare
  9.     p_schm alias for $1;
  10.     p_contact alias for $2;
  11.     p_status alias for $3; /* all - regardless of the status
  12.                               true - true status will be displayed
  13.                               false - false status will be displayed
  14.                            */
  15.     v_boolstatus boolean;
  16. begin
  17.     if (p_status = ''all'') then
  18.         select * from v_customerlogininfo
  19.         where contact = p_contact;
  20.     else
  21.         if (p_status = ''true'') then
  22.             v_boolstatus := true;
  23.         else
  24.             v_boolstatus := false;
  25.         end if;
  26.  
  27.         select * from v_customerlogininfo
  28.         where contact = p_contact
  29.             and status = v_boolstatus;
  30.     end if;
  31. end
  32. 'LANGUAGE 'plpgsql'

Expand|Select|Wrap|Line Numbers
  1. select f_customerlogininfo('public', '09045612378', 'all');
ERROR: SELECT query has no destination for result data;
Aug 13 '07 #1
2 14282
michaelb
534 Recognized Expert Contributor
You are mixing up sql and plpgsql methods in your plpgsql function.
The man pages I linked to your other posting will help you to sort it out.
Aug 14 '07 #2
eros
66 New Member
You are mixing up sql and plpgsql methods in your plpgsql function.
The man pages I linked to your other posting will help you to sort it out.
Thank you Sir. I will follow the link.
Aug 15 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: sky2070 | last post by:
Parse error: parse error, unexpected T_OBJECT_OPERATOR, expecting ')' in c:\inetpub\wwwroot\session.php on line 19 can anyone tell me what is wrong with this code??? <? // Define the Session...
3
by: Mohammed Mazid | last post by:
Can anyone please help me here? Basically I have modified the source code and understood it but when I update a record in the db using a JSP, it gives me an error "The flight you selected does...
6
by: Ehartwig | last post by:
I recently created a script for user verification, solved my emailing issues, and then re-created the script in order to work well with the new PHP 5 that I installed on my server. After...
3
by: Nathan Bloomfield | last post by:
Hi there, I am having difficulty with a piece of code which would work wonders for my application if only the error trapping worked properly. Basically, it works as follows: - adds records...
4
by: Gary | last post by:
Hi, I get this error " " when my web page run, what does it mean? Hope someone can help!!! Gary
0
by: zfraile | last post by:
I'm getting this error from the JIT compiler at runtime, but only on my boss' machine, not my development machine. I believe the error is generated from a call to an Excel object, but I can't tell...
16
by: lawrence k | last post by:
I've made it habit to check all returns in my code, and usually, on most projects, I'll have an error function that reports error messages to some central location. I recently worked on a project...
1
by: RYKLOU | last post by:
I am kinda new to php, but i do know what i am doing kinda, but i came across this error when i am trying to upload a file to my website. Fatal error: Allowed memory size of 8388608 bytes...
10
by: JRough | last post by:
I have a function definition error: Warning: Missing argument 2 for makexcldata(), called on line 123 and defined in on line 149 "Warning: mysql_fetch_row(): supplied argument is not a valid...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.