jacquestvanzuydam / laravel-firebird

Firebird Illuminate package for Laravel 5
63 stars 93 forks source link

Problem with lastInsertId #69

Closed lnicotra closed 6 months ago

lnicotra commented 5 years ago

I'm working with the driver in an app that is ok. Now i need to extend this app and my first requirement is to install Laravel Passport package, so i follow every step and when i do "php artisan passport:install" i get the error:

In Processor.php line 34:

  SQLSTATE[IM001]: Driver does not support this function: driver does not support lastInsertId()

Following the stacktrace i see that the Processor.php file that is using is in vendor\laravel\framework\src\Illuminate\Database\Query\Processors\ and calls lastInsertId php function. I'm stuck in here and don't know what to do to fix this problem.

selmo47 commented 5 years ago

I think that this fork resolvs this: https://github.com/sim1984/laravel-firebird but, i couldn't neither install it with composer, nor open an isuue on it

JuanPSH commented 4 years ago

Try this:

https://github.com/jacquestvanzuydam/laravel-firebird/issues/25#issuecomment-216392037

victorvilella commented 4 years ago

If you are using Firebird 1.x it is impossible because there is no support to returing values on insert statements.

Maybe it is impossible because PDO's Firebird support too I suppose.

Anyway, @JuanPSH refereed a alternative solution that I implemented im my project.

JoaoOliveiracc commented 3 years ago

My question is which model should I declare public $ incrementing = false?