db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lukas Eder (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DERBY-6758) Driver.connect() returns null when using file-based URL
Date Mon, 06 Oct 2014 14:26:34 GMT
Lukas Eder created DERBY-6758:

             Summary: Driver.connect() returns null when using file-based URL
                 Key: DERBY-6758
                 URL: https://issues.apache.org/jira/browse/DERBY-6758
             Project: Derby
          Issue Type: Bug
          Components: JDBC
    Affects Versions:
            Reporter: Lukas Eder

The following program can be used to reproduce this issue:

import java.sql.Driver;
import java.sql.DriverManager;
import java.util.Properties;

public class Test {

    public static void main(String[] args) throws Exception {
        Driver d = (Driver) Class.forName("org.apache.derby.jdbc.ClientDriver").newInstance();

        Properties properties = new Properties();
        properties.setProperty("user", "TEST");
        properties.setProperty("password", "TEST");
        System.out.println(d.connect("jdbc:derby:C:/data/derby/test;create=true", properties));

When run, the above program will output something like:

org.apache.derby.impl.jdbc.EmbedConnection@1226204845 (XID = 18681), (SESSIONID = 1), (DATABASE
= C:/data/derby/test), (DRDAID = null) 

This message was sent by Atlassian JIRA

View raw message