From: Derek Smith Date: 2009-08-19T11:22:18+09:00 Subject: if defined on var db = Amalgalite::Database.new("/usr/local/vrep/repo/db/development.sqlite3") table_exists = db.execute("select name from sqlite_master where type='table' and tbl_name='derek'") if defined?(table_exists) p "yes" end exit Why does this print "yes"? There is no table called derek in my DB. In fact it prints yes no matter what I type in for tbl_name. My goal is to see if a table exists by testing the var holding the data is true/defined or not. Will you help? thank you derek! -- Posted via http://www.ruby-forum.com/.