[Nitro] Sqlite bug fix patch for og 0.18.1
Ghislain Mary
nospam at lunacymaze.org
Wed Jun 1 15:13:26 EDT 2005
In this release, all the 'columns' have been renamed to 'fields' to be
more sql compliant. However, there's one that should not be changed
since it comes from the ruby-sqlite3 library. So here's the patch that
fixes this bug:
diff -ru og-0.18.1/lib/og/store/sqlite.rb
og-0.18.1-modified/lib/og/store/sqlite
.rb
--- og-0.18.1/lib/og/store/sqlite.rb Fri May 20 13:52:50 2005
+++ og-0.18.1-modified/lib/og/store/sqlite.rb Wed Jun 1 20:53:11 2005
@@ -161,7 +161,7 @@
res = @conn.query "SELECT * FROM #{klass::OGTABLE} LIMIT 1"
map = {}
- fields = res.fields
+ fields = res.columns
fields.size.times do |i|
map[fields[i].intern] = i
HTH,
Ghislain
P.S. Why are the docs still those of 0.17.0 version in the package and
those of 0.12.0 version on the web site?
More information about the Nitro-general
mailing list