[CONJ-97] Can't connect anymore on a database containing spaces Created: 2014-05-02  Updated: 2014-09-09  Resolved: 2014-09-09

Status: Closed
Project: MariaDB Connector/J
Component/s: None
Affects Version/s: 1.1.6, 1.1.7
Fix Version/s: 1.1.8

Type: Bug Priority: Minor
Reporter: Frédéric RENAULT Assignee: Massimo Siani (Inactive)
Resolution: Fixed Votes: 0
Labels: None


 Description   

There is now a java.sql.SQLSyntaxErrorException when trying to connect to a database containing spaces.

It's since version 1.1.6 and these changes in MySQLProtocol.java :

if (database != null && database.length() > 0)
{
// and switch to this database
executeQuery(new MySQLQuery("USE " + database));
}



 Comments   
Comment by Massimo Siani (Inactive) [ 2014-07-07 ]

Rev 511 adds a test case.

Generated at Thu Feb 08 03:13:09 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.