AnantLabs / xerial

Automatically exported from code.google.com/p/xerial
0 stars 0 forks source link

SQLException: out of memory when DB file path contains national characters #88

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Load Xerial driver.
2. DriverManager.getConnection("jdbc:sqlite:C:\\ĄĄĄ\\data.db");

What is the expected output? What do you see instead?
Creating connection, but I'm getting exception instead.

What version of the product are you using? On what operating system?
3.7.2
Windows 7 x64

Please provide any additional information below.
java.sql.SQLException: out of memory
    at org.sqlite.DB.throwex(DB.java:370)
    at org.sqlite.NestedDB._open(NestedDB.java:74)
    at org.sqlite.DB.open(DB.java:86)
    at org.sqlite.Conn.open(Conn.java:140)
    at org.sqlite.Conn.<init>(Conn.java:57)
    at org.sqlite.JDBC.createConnection(JDBC.java:77)
    at org.sqlite.JDBC.connect(JDBC.java:64)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at java.sql.DriverManager.getConnection(Unknown Source)

Original issue reported on code.google.com by arek.swi...@gmail.com on 9 Dec 2010 at 9:34

GoogleCodeExporter commented 9 years ago
I have not confirmed this problem, but file name must be encoded in UTF8 for 
using in sqlite.

Original comment by taroleo on 10 Jun 2011 at 3:27

GoogleCodeExporter commented 9 years ago
I think there is additional condition for the issue to occur:
driver working in pure Java mode, not in native.

Original comment by arek.swi...@gmail.com on 10 Jun 2011 at 7:02