Problems inserting integer data into Sybase using Laravel

1

Hello,

I'm having trouble inserting values into tables with columns of integer data type using Laravel 5.1 and Sybase.

Error 257 is listed when the exception is thrown. In the Sybase manuals seems to be a conversion problem. I can see that the sql of the insert mounted by the framework is something like

 inserir [table_name] ([col1], []) col2 valores ('AAA', '999'))

So I realize that Laravel is passing all values in single quotation marks, and it seems to me that Sybase does not accept this type of construction.

I'm using Linux Ubuntu with freetds installed with version 5.0 of the protocol.

Has anyone solved this type of problem yet? Is it missing any configuration or do I have to write an extension driver to work with Sybase and Laravel 5.1?

    
asked by anonymous 20.08.2015 / 15:11

1 answer

0

After several attempts at packages and drivers, we find that Sybase's weak support for PDO drivers coupled with Eloquent behaviors that are common to the SGBDs it supports natively like MySql, Postgres and Sqlite.

We decided on the team by writing an Eloquent package for Sybase support and making it available as open source on Github.

Follow the link

    
15.12.2015 / 13:20