Displaying 20 results from an estimated 10000 matches similar to: "Rails 1.1RC1 corrupts my sqlite3 database"
2006 Mar 24
6
Should counter_cache fields be saved in the database?
As far as I can tell, the counter_cache option on a belongs_to model
doesn''t actually save anything in the database. For example, I have
the following models:
class Parent < ActiveRecord::Base
has_many :children,
:conditions => "deleted_at IS NULL"
end
class Child < ActiveRecord::Base
belongs_to :parent, :counter_cache => true
end
With the following
2006 Mar 21
0
sqlite3 SQL logic error or missing database
Hello,
i can''t insert data into table. This is weird because everything else
works:
i can select data the database file I use;
i can insert data into required table if i connect to my sqlite3 file
from shell and insert data manually.
My database configuration:
production:
adapter: sqlite3
dbfile: db/production.sqlite3
.
File production.sqlite3 is chmod''ed 777 and
2007 Nov 01
0
attach database in active record with sqlite3
Sqlite3 is capable of attaching multiple databases together so two or
more can be accessed with a single SQL query. Do AR and sqlite3-ruby
support this functionality? If not, is there a way to achieve similar
functionality?
Thanks,
Earle
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
2009 Apr 25
5
SQLite3::SQLException: unable to open database file
Hi.
I was trying to code same as the rails guide : getting started.
I could follow steps to 6.3 Working with Posts in the Browser.
(setting home page, creating a resource, running a migration)
After clicked create button, errors are occured.
SQLite3::SQLException: unable to open database file: INSERT INTO
"posts" ("name", "created_at", "title",
2007 Jan 10
0
SQLite3::CantOpenException
Hi,
When I try to run a controller that connects to my project''s sqlite
database, I get the following exception:
SQLite3::CantOpenException in PostController#index
could not open database
config/database.yml correctly points to my database, like so:
development:
adapter: sqlite3
database: db/dev.db
I''ve had Rails projects working with sqlite3 before (recently), but
2008 May 03
2
sqlite3, inserting values in database
hi,
i have a small form of textfields and i need to add these informations
to a table in sqlite3 database. but i dont know how to do it. i mean
that its small address book program. and ''id'' from ''clients'' table has
to increments. i open database with : db = Database.open("data.db"), but
then i dont know what to do...
anyone can help?
--
Posted via
2007 Feb 07
0
strange sqlite3 errors - validates_associated & failing activerecord unit tests
I''m getting two strange errors, both which I believe relate to sqlite3.
The first one is with validates associated. Here is my test:
require File.dirname(__FILE__) + ''/../test_helper''
class SubscriptionPlanTest < Test::Unit::TestCase
fixtures :subscription_plans
fixtures :publications
def setup
@six_month_gold = subscription_plans(:six_month_gold)
2009 Mar 16
0
Reading XML-file + saving to sqlite3 database
Hi!
I''m new with Ruby On Rails, so I don''t really know how I can get this
fixed.
As a result of a program, I''ve got +/- 20 XML files, and I would like
to import them to my sqlite3 database. Each XML-file having it''s own
table.
Now I think I need to read the xml-files first and process them later.
I''ve done some research and found REXML, but I
2006 Mar 01
4
cached_model and memcache-client slowness
Hi there,
I''ve got a Rails app that''s a little unusual in that it maintains a
database representation of a filesystem (for an image gallery). Thus, if
the filesystem is essentially ''out of date'' then the controller''s list
action will end up invoking a model update (which involves a filesystem
scan).
I''m using sqlite3 as this app will be
2006 Mar 02
0
SQLite3 hook up error on OS X 10.4.5
friends of the int-arweb.
what does this mean:
(in bold) ActiveRecord::StatementInvalid in Contact#create
SQLite3::SQLException: SQL logic error or missing database: INSERT
INTO contacts
Context:
this happened after I had finished setting up RoR as per the tutorial
at http://maczealots.com/tutorials/ruby-on-rails/
the database, is like, there. is there a nice ruby command like deal
to
2006 May 11
2
Unit tests fail with sqlite3 and rails 1.1
Hello all,
I''m kinda going through a rocky upgrade to rails 1.1 and I can''t find
much on google about this. When I run my tests I get this:
$ rake
(in /home/www/art2)
/usr/bin/ruby -Ilib:test
"/usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/rake_test_loader.rb"
"test/functional/panoramas_controller_test.rb"
2014 Jul 15
0
Corrupted sqlite3 astdb back end
So I found out my astdb database is boink (asterisk 1.8.something):
[Jul 15 06:42:28] ERROR[18769] res_config_sqlite.c: database disk
image is malformed
# first stop asterisk before doing this, and do it on a copy:
sqlite3 ./sqlite.db .dump |less
PRAGMA foreign_keys=OFF;
BEGIN TRANSACTION;
/**** ERROR: (26) file is encrypted or is not a database *****/
ROLLBACK; -- due to errors
(END)
Anything
2006 Nov 04
0
gem install sqlite3-ruby error
when i install typo on debian, appear error like this, could you tee
me how to fix this bug?:
debian:~# gem install sqlite3-ruby
Need to update 4 gems from http://gems.rubyforge.org
....
complete
Select which gem to install for your platform (i486-linux)
1. sqlite3-ruby 1.1.0 (mswin32)
2. sqlite3-ruby 1.1.0 (ruby)
3. sqlite3-ruby 1.0.1 (mswin32)
4. sqlite3-ruby 1.0.1 (ruby)
5. sqlite3-ruby
2012 Feb 27
0
Rails 3.1 and SQLite3
I am getting this message when running my tests against RoR-3.1
.rvm/gems/ruby-1.8.7-p352/gems/activerecord-3.1.1/lib/active_record/
connection_adapters/abstract/connection_specification.rb:71:in
`establish_connection'': Please install the sqlite3 adapter: `gem
install activerecord-sqlite3-adapter` (sqlite3 is not part of the
bundle. Add it to Gemfile.)
However, I already have this in my
2010 Nov 30
0
simple SQLITE3 error!!??library routine called out of sequence
Hi, dear guys!
I have following super simple program
dbh=DBI.connect("DBI:SQLite3:barron.db")
sth=dbh.prepare("INSERT INTO WORDS VALUES(?,?,?)")
3.times{
sth.execute("1","2","3")
}
and it gives me error :
/Users/tsdeng/.rvm/gems/ruby-1.8.7-p302/gems/sqlite3-ruby-1.3.1/lib/sqlite3/statement.rb:41:in `bind_param'': library routine called
2008 Nov 12
1
gem ruby-sqlite3 install error
i am tryin' to install ruby-sqlite3 via gem, but it keeps givin' me this
output:
mathilda ~ # gem install sqlite3-ruby
Building native extensions. This could take a while...
ERROR: Error installing sqlite3-ruby:
ERROR: Failed to build gem native extension.
/usr/bin/ruby extconf.rb install sqlite3-ruby
checking for fdatasync() in -lrt... no
checking for sqlite3.h... no
make
make: *** No
2009 May 29
0
[LLVMdev] make TEST=ipodbgopt in sqlite3: problem with TCLSH
On 2009-05-29 15:55, Jay Foad wrote:
> On Linux, when I run "make TEST=ipodbgopt" in
> MultiSource/Applications/sqlite3 I get:
>
> make[4]: Entering directory
> `/home/foad/llvm/poo/build/test-suite/MultiSource/Applications/sqlite3'
> Compiling shell.c to Output/shell.bc
> /home/foad/svn/llvm-project/test-suite/trunk/MultiSource/Applications/sqlite3/speedtest.tcl
2006 Jul 09
1
connecting to sqlite3
I''m having problems connecting to sqlite3.
Here is what my config file looks like:
development:
adapter: sqlite3
dbfile: /tmp/db/test.db
test:
adapter: sqlite3
dbfile: /tmp/db/test.db
Running migrations causes this error to be thrown:
g4:~/sites/rails/test smtlaissezfaire$ rake migrate
(in /Users/smtlaissezfaire/Sites/rails/test)
rake aborted!
no such file to load -- sqlite3
2009 May 29
2
[LLVMdev] make TEST=ipodbgopt in sqlite3: problem with TCLSH
On Linux, when I run "make TEST=ipodbgopt" in
MultiSource/Applications/sqlite3 I get:
make[4]: Entering directory
`/home/foad/llvm/poo/build/test-suite/MultiSource/Applications/sqlite3'
Compiling shell.c to Output/shell.bc
/home/foad/svn/llvm-project/test-suite/trunk/MultiSource/Applications/sqlite3/speedtest.tcl
make[4]: execvp:
2012 Nov 05
0
Error while installing GEM sqlite3
Hello out there. I am learning Ruby on Rails, and while trying to install
the sqlite3 GEM I got the error below (it is under Win 7):
D:\My Documents\workspace\first_app>gem install sqlite3 -v ''1.3.5''
Successfully installed sqlite3-1.3.5-x86-mingw32
1 gem installed
Installing ri documentation for sqlite3-1.3.5-x86-mingw32...
Installing RDoc documentation for