fix for database which not support the parameter type