The directory where iijdbc.properties is stored needs to be added to
the classpath. The startup scripts for SQuirreL defines the classpath,
but instead of manipulating it here I would add the directory in the
"Extra Class Path" Tab in the Driver definition. (I wouldn't use the
ingres/files directory for that, but it doesn't matter ...)
I have tried the extra path option in squirrel, to no avail. Regardless of how I set the ingres.jdbc.date.empty=null in the
properties, Squirrel will not return null for blank dates.
As I have said I am new to Ingres, could this be a DB issue rather than
just a squirrel/jdbc issue?
> I have tried the extra path option in squirrel, to no avail.
> Regardless of how I set the ingres.jdbc.date.empty=null in the
> properties, Squirrel will not return null for blank dates.
> As I have said I am new to Ingres, could this be a DB issue rather than
> just a squirrel/jdbc issue?
The first thing is to confirm that empty dates can be handled outside
Squirrel. Try the test program below both with and without converting
empty dates to null:
I tried the 3.4.11 driver and it worked as expected. If you get this to
work, but it doesn't work in Squirrel, then it could either be a
Squirrel problem or just that the driver isn't seeing the config.
ing...@kettleriverconsulting.com> wrote:
> I have tried the extra path option in squirrel, to no avail.
> Regardless of how I set the ingres.jdbc.date.empty=null in the
> properties, Squirrel will not return null for blank dates.
Try with the following "iijdbc.properties" file:
ingres.jdbc.trace.log=/tmp/jdbc.log
ingres.jdbc.trace.drv=3
ingres.jdbc.trace.ds=1
ingres.jdbc.trace.timestamp=true
ingres.jdbc.date.empty=NULL
When iijdbc.properties is picked up you will get a trace file /tmp/
jdbc.log. If there is no such file, then there is something wrong with
the classpath setting or with the filename or may be permissions to
read the file.
If the trace file is created, you should see a "Conn: date.empty=NULL"
in that file somewhere at the beginning.
The output from 'java -Dingres.jdbc.date.empty=NULL IngEmpty' shows that
the driver is turning the empty date into a null value. The fact that
you get the same output for 'java IngEmpty' indicates that the driver,
at least in a pure Java environment, is seeing the properties file with
the empty date config.
Now you need to get the config info into the driver in the Squirrel
environment. Unfortunately, I'm not familiar with that environment and
can't provide further assistance other than one of the following is
needed:
* The driver will load iijdbc.properites if it is in a directory which
is referenced by the CLASSPATH used in the environment.
* Define the system property ingres.jdbc.property_file with the path to
the properties file.
* Define the system property ingres.jdbc.date.empty directly.
* Define the system property ingres.jdbc.property_file with the path to
the properties file.
This one confuses me, according to what I have read on the web, this is
a property contained in the properties file? Can you provide an example
of where/how I would set this.
I know my question was not exactly in the subject but have my reply :
*iijdbc.properties* must be located in *DB Visualizer home\resources*.
FYI
--
Jean-Pierre Zuate
La Fage Conseil
01 55 68 12 25
jean-pierre.zu...@lafageconseil.fr
http://lafageconseil.fr/
2012/2/2 Jean-Pierre Zuate, La Fage Conseil <
jean-pierre.zu...@lafageconseil.fr>
>> I have tried the extra path option in squirrel, to no avail.
>> Regardless of how I set the ingres.jdbc.date.empty=null in the
>> properties, Squirrel will not return null for blank dates.
>> As I have said I am new to Ingres, could this be a DB issue rather than
>> just a squirrel/jdbc issue?