Closed reneweteling closed 6 years ago
added pull, so closing the issue
Did you test if this breaks mysql?
Mark Vaughn Mobile: +1 (770) 533-2274
On Tue, Apr 15, 2014 at 11:15 AM, Rene Weteling notifications@github.comwrote:
Closed #94https://github.com/bllim/laravel4-datatables-package/issues/94 .
— Reply to this email directly or view it on GitHubhttps://github.com/bllim/laravel4-datatables-package/issues/94 .
@MarkVaughn sorry the problem is that the items arent quotet the right way
i ended up using the fix below ( its in the psql section so no harm to other databases )
if( DB::getDriverName() === 'pgsql') {
$cast_begin = 'CAST(';
$cast_end = ' as TEXT)';
// put the column name in quotes
$column = join('.', array_map( function($n){ return '"'.$n.'"'; }, explode('.', $column) ));
}
There is a related PR #114 about adding escaping column names in mySQL. I will work on this.
Added to TO DO list for 1.4.1 release #122
Closing due to inactivity
Hey there,
On Datatables.php:403 you have this
only this results in postress errors when you have a column defined like table.field.
if you add come quotes all is well like this
Thanks!