Chris2018998 / beecp

A small JDBC Connection pool
Apache License 2.0
88 stars 18 forks source link

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

Closed myhubxxx closed 5 years ago

myhubxxx commented 5 years ago

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 '"); }

Chris2018998 commented 5 years ago

fixed