[Nitro] Og in glycerin is broken now.

George Moschovitis george.moschovitis at gmail.com
Sun Aug 27 04:52:41 EDT 2006


Ok will have a look at this today. I will also review your og threading bug.

thanks,
George.

On 8/27/06, Fang Sun <nusgnaf at gmail.com> wrote:
> Ah, better example to demonstrate this:
> ----------8<---------
> require 'repo.nitroproject.org/glycerin'
> require 'og'
> class U
>     property :name, String
> end
>
> Og.start
> u = U.new
> u.name = "haha"
> u.save!
>
> fang at fang:~/Ruby/code$ ruby a.rb
>  INFO: Og uses the Sqlite store.
> a.rb:10: undefined method `save!' for #<U:0xb7b98068 @name="haha">
> (NoMethodError)
> -----------8<--------
>
> recheck data.db find out the table isnot created. Uncomment the first
> line, rerun the script
> =======
> fang at fang:~/Ruby/code$ ruby a.rb
>  INFO: Og uses the Sqlite store.
>  INFO: Created table 'ogu'
>
> fang at fang:~/Ruby/code$ sqlite3 data.db '.dump'
> BEGIN TRANSACTION;
> CREATE TABLE ogu (name text, oid integer PRIMARY KEY);
> INSERT INTO "ogu" VALUES('haha', 1);
> COMMIT;
> =======
> _______________________________________________
> Nitro-general mailing list
> Nitro-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/nitro-general
>


-- 
http://www.gmosx.com
http://www.nitroproject.org


More information about the Nitro-general mailing list