Closed tuxjobs closed 12 years ago
Your code is correct - that's the way for passing options to connection
hmm... if i use 'SQL_ROLE_NAME' as key - i get 'uninitialized constant SQL_ROLE_NAME'
SQL_ROLE_NAME => uninitialized constant SQL_ROLE_NAME "SQL_ROLE_NAME" => no implicit conversion from nil to integer :sql_role_name => no implicit conversion from nil to integer
Using fully qualified constant name Rubyfb::Connection::SQL_ROLE_NAME should help.
thx - worked
Ok - closing
Hi, is this the propper way to give the attribut sql_role_name to the connect satement? Couldn't find any example how the hash should look like...
db = Database.new('test-server.org:C:\DB\test.fdb') db.connect('Username', 'Passwort',{SQL_ROLE_NAME => "DB_USERS"})