Subject | Re: [Firebird-Java] Jaybird 2 |
---|---|
Author | Carsten Schäfer |
Post date | 2005-07-06T07:03:34Z |
I have the exception for every call of prepareStatement.
Code like this:
dataSource = new FBWrappingDataSource();
dataSource.setType("type4");
dataSource.setDatabase(dbRechner + "/" + port + ":" + db);
dataSource.setUserName(user);
dataSource.setPassword(passwort);
dataSource.setEncoding("WIN1252");
dataSource.setPooling(true);
dataSource.setStatementPooling(true);
dataSource.setMinPoolSize(0);;
dataSource.setMaxPoolSize(30);
dataSource.setPingInterval(1000);
dataSource.setBlockingTimeout(20000);
dataSource.setMaxIdleTime(3600000);
Connection con dataSource.getConnection()
String query = "SELECT * FROM T_waehrung WHERE f_active = ?";
PreparedStatement anfrage = con.prepareStatement(query);
Roman Rokytskyy schrieb:
Code like this:
dataSource = new FBWrappingDataSource();
dataSource.setType("type4");
dataSource.setDatabase(dbRechner + "/" + port + ":" + db);
dataSource.setUserName(user);
dataSource.setPassword(passwort);
dataSource.setEncoding("WIN1252");
dataSource.setPooling(true);
dataSource.setStatementPooling(true);
dataSource.setMinPoolSize(0);;
dataSource.setMaxPoolSize(30);
dataSource.setPingInterval(1000);
dataSource.setBlockingTimeout(20000);
dataSource.setMaxIdleTime(3600000);
Connection con dataSource.getConnection()
String query = "SELECT * FROM T_waehrung WHERE f_active = ?";
PreparedStatement anfrage = con.prepareStatement(query);
Roman Rokytskyy schrieb:
>>i wanted to test the new Jaybird2 Beta driver. (WinXp with Firebird 2
>>Alpha and Java 1.4.2)
>>I replaced the firebirdsql-full.jar with the jaybird-full-2.0.0.jar.
>>When i start my programm i get the following exception for every call of
>>prepareStatement(sql)
>>java.lang.RuntimeException: Cannot get the value for this argument type
>>as a string
>>
>>
>
>Can you post a sample code to reproduce the problem?
>
>