for newer versions of laravel
Fixed data type errors when filtering integer column with LIKE statement

Tested on MySQL, PostgreSQL, SQLite, MS SQL Server and Oracle (http://sqlfiddle.com/#!8/cd1eb/1/0)
Merge pull request #23 from tortuetorche/patch-1

WIP: Fixed data type errors when filtering integer column with LIKE statement
When filtering, we need to specified the max size of the column to correctly casting them.
Fixed columns casting for Oracle and PostgreSQL when filtering.

Check each column type and if it's a string set its max size instead of the default 255.
Because PostgreSQL and Oracle don't allow to cast CHAR type without a max length parameter.
Missing right parenthesis when searching with case insensitive
LOWER SQL function only works on text/varchar data type column

So we need to use it after casting the column to CHAR.
Tidying up codes and removing useless comments
Refactoring column type and max column length detections

... in a more Laravel way.
Merge pull request #24 from tortuetorche/patch-1

Fixed data type errors when filtering integer column with LIKE statement. Act II
Fixed searching in string/text/blob columns longer than 255 characters
Convert Indentation to Tabs
fix #26
Merge branch 'master' of https://github.com/bllim/laravel4-datatables-package into patch-1

Conflicts:
	src/Bllim/Datatables/Datatables.php
Merge pull request #25 from tortuetorche/patch-1

Fixed data type errors when filtering integer column with LIKE statement. Act III
Add ability to use AS statement in queries

This will add the ability to do an AS statement in your queries and not break the result
e.g. 

$result = DB::table(str_plural($this->model))->where('account_id', '=', 333)->select('id', 'title', DB::raw("LEFT(contents, 40) AS contents"));
return Datatables::of($result)->make();
version update
omitting version field
Cast columns only for PostgreSQL when filtering.
Merge pull request #36 from tortuetorche/patch-1

When filtering, cast columns only for PostgreSQL.