uepg / laravel-sybase

Connection and Laravel Eloquent driver for Sybase
GNU General Public License v2.0
33 stars 16 forks source link

Bug when migrate in Laravel 5.5 #46

Open ghost opened 5 years ago

ghost commented 5 years ago

When I use php artisan migrate in Laravel 5.5, I got this error:

In Connection.php line 664:

  SQLSTATE[HY000]: General error: 257 Implicit conversion from datatype 'VARCHAR' to 'INT' is not allowed.  Use the CONVERT function to run this query.  
   [257] (severity 16) [select * from sysobjects where type = 'U' and name = 0] (SQL: select * from sysobjects where type = 'U' and name = migrations)   

In SybaseConnection.php line 477:

  SQLSTATE[HY000]: General error: 257 Implicit conversion from datatype 'VARCHAR' to 'INT' is not allowed.  Use the CONVERT function to run this query.  
   [257] (severity 16) [select * from sysobjects where type = 'U' and name = 0]
ghost commented 5 years ago

Maybe it is related to issue #3.