New Database Adapter: OpenBase

Greetings to all!

I’ve decided to begin my journey into Ruby generally, and Rails
specifically, by writing a new database adapter for OpenBase. It’s
nearly complete, but I’ve run into a small issue:

In OpenBase, you cannot override a default value with a NULL during
an INSERT. OpenBase detects the null value and chooses the default
instead. This means that my adapter is not passing the
test_default_values_on_empty_strings(BasicTest).

I need to first execute the INSERT, then send an UPDATE to nullify
the necessary attributes. Is this something I should do at the
adapter level, or should it perhaps go into the ActiveRecord? Since
it seems that the other 8 database servers do not have this behavior,
I’m thinking this belongs in the #insert on my adapter.

Any comments, suggestions…?

-Derrick

"Perl’s grammar can not be reduced to BNF.
The work of parsing perl is distributed between
yacc, the lexer, smoke and mirrors.’’
-Chaim Frenkel