Subject Re: [firebird-php] Re: drupal 7 and firebird it might work
Author Lester Caine
mariuz wrote:
>
>
> --- In firebird-php@yahoogroups.com, "mariuz"<mariuz@...> wrote:
>>
>>
>>
>> --- In firebird-php@yahoogroups.com, Jiri Cincura<diskuze@> wrote:
>>>
>>> On Thu, Jul 28, 2011 at 16:30, marius adrian popa<mapopa@> wrote:
>>>> I saw that is a new version of drupal 7.7
>>>> and i was courious if it works with firebird
>>>>
>>>> It might be that it does :)
>>>>
>>>> http://drupal.org/node/1081460
>>>>
>>>> I will check in weekend
>>>
>>> How it went? BTW I'd like to see WordPress on Firebird, that would be cool. ;)
>>
>> Well the api changed and we must implement nextId with sequences
>>
>> PHP Fatal error: Class DatabaseConnection_firebird contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (DatabaseConnection::nextId) in /var/www/drupal-7.7/includes/database/firebird/database.inc on line 171, referer: http://localhost/drupal-7.7/install.php?profile=standard&locale=en
>
> Something like this must be implemented
> http://api.drupal.org/api/drupal/includes--database--pgsql--database.inc/function/DatabaseConnection_pgsql%3A%3AnextId/7

mariuz
I'd probably just modify that to work with a generator.
http://www.lsces.co.uk/bwhg/bitweaver/externals/adodb/file/33ad474990a3/drivers/adodb-firebird.inc.php#l261

Should work in place of the nextval() and does not need any of the locking stuff
;) For completeness the create section would be useful, but i'd need to dig
deeper to work out how to check the error in the Drupal code ... Someone may
already be able to supply that info.

--
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php