TAJO-847: Supporting MariaDB-based Store, which is compatible with MySQL.

I have switched TAJO-847 pull request from branch-0.8.1 to master.
Please check this version.
As I know, this function is a temporal solution to handle the internal NPE of MariaDB. Would you leave some descriptions of the error and this solution?