Win XP SP2
Java 1.5
DBF_JDBC30.jar (Trial)
...
String directory = System.getProperty("user.dir");
try {
Class.forName("com.hxtt.sql.dbf.DBFDriver").newInstance();
Properties connInfo = new Properties();
connInfo.put("versionNumber", "03");
connInfo.put("DefaultExtension", "001");
Connection con = DriverManager.getConnection("jdbc:dbf:/" + directory, connInfo);
Statement stmt = con.createStatement();
stmt.execute("CREATE TABLE test03 (col Character(3))");
con.close();
}
catch (Exception e) {
e.printStackTrace();
}
...
Rezult: file - "test03.001", first bytes - "30 6A 01 11 ..."
connInfo.put("versionNumber", "03") - dBASE III
Why first byte in file "test03.001" equals default "30" - Visual FoxPro?
Thanks.
|
Copied and tested your sample code with the latest pacakge. Passed. It returns the normal "03 06 01 11".
|