Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread

 

By: Mike Wilson
RE: sqlite3-ruby-1.1.0 - NameError: uninitial [ reply ]  
2006-08-25 14:27
Glad you got it sorted. Yes, it is very quiet here which is a pity as SQLite is a very useful tool. I also had a problem when I started using it. Like you, I fixed it myself...

By: S F
RE: sqlite3-ruby-1.1.0 - NameError: uninitial [ reply ]  
2006-08-25 13:29
:-)

Mad indeed... My typo:

% /usr/local/bin/irb
irb(main):001:0> require 'sqlite3'
=> true
irb(main):002:0> db = SQLite3::Database.open( "foo.db" )
=> #<SQLite3::Database:0x2e0e20 @results_as_hash=false, @driver=#<SQLite3::Driver::DL::Driver:0x1aa988>, @closed=false, @handle=#<DL::PtrData:0x3f1de8 ptr=0x3f1e48 size=0 free=0x0>, @translator=nil, @statement_factory=SQLite3::Statement, @type_translation=false>
irb(main):003:0>

Works!! surprise --- surprise :-) LOL :-) Now
for some coffee so I can wake up already

Apologies...

BTW. The forum does still seem a little dead.

-s

By: S F
sqlite3-ruby-1.1.0 - NameError: uninitialized [ reply ]  
2006-08-25 13:03
With:sqlite3-ruby-1.1.0

And:

% ruby -v
ruby 1.8.4 (2005-12-24) [sparc-solaris2.10]

I see:

% /usr/local/bin/irb
irb(main):001:0> require 'sqlite3'
=> true
irb(main):002:0> db = SQLite::Database.new("test.db")
NameError: uninitialized constant SQLite
from (irb):2


Any idea why I see this uninitialized constant
issue?

(BTW. Is this forum/project dead?) :-)

Stephen

--