Subject | Re: FBWrappingDataSource and character encodings |
---|---|
Author | sergeybervinov |
Post date | 2003-03-25T11:58:04Z |
Start working!!! ;-)
--------------
...
private FBWrappingDataSource ds;
...
ds.setDatabase(databaseRegistrationInformation.getDataSourceDatabase
());
...
FBConnectionRequestInfo cri = ds.getConnectionRequestInfo();
cri.setProperty(ISCConstants.isc_dpb_lc_ctype,
Config.DATABASE_DRIVER_ENCODING);
cri.setProperty(ISCConstants.isc_dpb_sql_dialect, 3);
ds.setConnectionRequestInfo(cri);
...
--------------
public class DatabaseRegistrationInformation {
...
public String getDataSourceDatabase() {
return "//" + host + ":" + port + "/" + name; //+ "?
lc_ctype=" + DATABASE_DRIVER_ENCODING;
}
...
}
--------------
--------------
...
private FBWrappingDataSource ds;
...
ds.setDatabase(databaseRegistrationInformation.getDataSourceDatabase
());
...
FBConnectionRequestInfo cri = ds.getConnectionRequestInfo();
cri.setProperty(ISCConstants.isc_dpb_lc_ctype,
Config.DATABASE_DRIVER_ENCODING);
cri.setProperty(ISCConstants.isc_dpb_sql_dialect, 3);
ds.setConnectionRequestInfo(cri);
...
--------------
public class DatabaseRegistrationInformation {
...
public String getDataSourceDatabase() {
return "//" + host + ":" + port + "/" + name; //+ "?
lc_ctype=" + DATABASE_DRIVER_ENCODING;
}
...
}
--------------