Chris2018998 / beecp

A small JDBC Connection pool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The check of validationQuerySQL has logic problem[class:BeeDataSourceConfig, method:check], 313 line.

myhubxxx opened this issue · comments

check the validationQuerySQL, may be you can change to this.
if (this.validationQuerySQL != null) { if ( ! this.validationQuerySQL.toLowerCase().trim().startsWith("select ")) throw new IllegalArgumentException("connection calidate SQL must start with 'select '"); }

fixed