![]() When the Firebird adapter encounters a column that is based on a domain that includes “BOOLEAN” in the domain name, it will attempt to treat the column as a BOOLEAN.īy default, the Firebird adapter will assume that the BOOLEAN domain is defined as above. But you can easily define a BOOLEAN domain for this purpose, e.g.: CREATE DOMAIN D_BOOLEAN AS SMALLINT CHECK (VALUE IN (0, 1) OR VALUE IS NULL) (Pre-fetching the next primary key value is the only reliable method for the Firebird adapter to report back the id after a successful insert.) BOOLEAN Domainįirebird 1.5 does not provide a native BOOLEAN type. When saving a new record, ActiveRecord pre-fetches the next sequence value for the table and explicitly includes it in the INSERT statement. In other words, you don't have to try to make Firebird simulate an AUTO_INCREMENT or IDENTITY column. Note that in general there is no need to create a BEFORE INSERT trigger corresponding to a Firebird sequence generator when using ActiveRecord. See ActiveRecord::Base#set_sequence_name for more details. The Firebird adapter supports the same approach adopted for the Oracle adapter. FireRuby works with Firebird 1.5.x on Linux, OS X and Win32 platforms. The Firebird adapter relies on the FireRuby extension, version 0.4.0 or later (available as a gem or from RubyForge).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |