Problems entering entire data into Sybase using Laravel

Asked

Viewed 102 times

1

Hello,

I’m having trouble inserting values into tables with entire data type columns using Laravel 5.1 and Sybase.

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

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

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

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

Has anyone ever solved this kind of problem? Some configuration is missing or I have to write an extension driver to work with Sybase and Laravel 5.1?

1 answer

1


After several attempts of packages and drivers we have found that the problem is weak support for Sybase by PDO drivers allied to Eloquent behaviors that are common to Dbms that it supports natively like Mysql, Postgres and Sqlite.

We decided in the team to write an Eloquent package for Sybase support and make it available as open-source on Github.

Follows the address https://github.com/uepg/laravel-sybase

Browser other questions tagged

You are not signed in. Login or sign up in order to post.