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 October 7th, 2003, 03:31 AM
daniel-kun daniel-kun is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: NRW/Germany
Posts: 3 daniel-kun User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to daniel-kun
Problem with roles on Firebird 1.5

Hi,

I encountered some problems regarding grant and roles in the latest Firebird build.
Here's a basic test-case that reproduces the problem:
Code:
~/>>isql
Use CONNECT or CREATE DATABASE to specify a database
SQL> create database '~/Data/User/Test.fdb';
SQL> create table test( Field1 Integer, Field2 VarChar(30) );
SQL> create role test_role;
SQL> grant select on test to role test_role;
SQL> grant test_role to dalbu;
SQL> exit;
~/>>isql -u dalbu -p password
Use CONNECT or CREATE DATABASE to specify a database
SQL> connect ~/Data/User/test.fdb;
Database:  ~/Data/User/test.fdb, User: dalbu
SQL> select * from test;
Statement failed, SQLCODE = -551

no permission for read/select access to TABLE TEST 
SQL>

How's that possible? Are roles broken on Firebird 1.5, or is something wrong with my SQL?
Can someone test this with other Firebird versions?

thanks for any help,
Daniel Albuschat

Reply With Quote
  #2  
Old August 20th, 2004, 10:39 PM
mikca mikca is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 7 mikca User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
SQL> connect ~/Data/User/test.fdb Role test_role;

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesFirebird SQL Development > Problem with roles on Firebird 1.5


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 5 hosted by Hostway
Stay green...Green IT