spilliton/randumb — Issue #2: SQLite 3 - Statement Invalid
Author: schneider-th
Created: 2011-11-07 15:01:10+00:00
State: open

Hi,

I'm trying to get your gem working, but it always throws an exception at me, that looks like this:

ActiveRecord::StatementInvalid (SQLite3::SQLException: near "FROM": syntax error: SELECT FROM "exercises" WHERE ("exercises"."id" IN (2)))

The problem is that is misses an asterisk * between SELECT and FROM. If i change the command to

SELECT * FROM "exercises" WHERE ("exercises"."id" IN (2))

and enter it in my SQLite-Database I get the record I wanted.

I would really like this thing to work because it could save me a lot of time.

Thanks in advance!