Firebird SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesFirebird SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 9th, 2005, 12:22 PM
adviner adviner is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2005
Posts: 10 adviner User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 30 m 6 sec
Reputation Power: 0
Using d_boolean domain to return in stored procedure

Hi, I'm using the following domain which i found in the net to be used as a bool datatype:

create domain "D_BOOLEAN" as smallint default 0
check (value between 0 and 1);


I have a stored procedure that i would like to return a 1/0
so i have the following:

RETURNS
(
Success D_BOOLEAN
)

But i receive an error:
Token unknown -line 9, char 10
D_BOOLEAN

Am i using a domain wrong?

Thanks

Reply With Quote
  #2  
Old May 10th, 2005, 01:39 AM
SilverDB's Avatar
SilverDB SilverDB is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Location: Romania
Posts: 173 SilverDB User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 45 m 53 sec
Reputation Power: 4
Send a message via Yahoo to SilverDB
I think that you can't assign a domain to "Success" ... try:

RETURNS ( Success INTEGER ) and set it to 0 or 1 depending on the result.
__________________
If i've been helpful, please add to my reputation.
My unfinished site: http://www.dever.ro

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesFirebird SQL Development > Using d_boolean domain to return in stored procedure


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway