This one time, at band camp, Chaudhuri, Hiran said:
CH>Seems like I fail preparing my database so that the tests can perform. Or
CH>maybe other bugs in Castor keep me from getting done.
CH>What I see is that some tables are sometimes required in upper case letters,
CH>sometimes in lower case letters. It is fact that my database translates
CH>unquoted table names to uppercase before processing any request, where such
CH>error messages evolve. This may indicate that Castor does not really quote
CH>all table names.
CH>
CH>I have changed the code (SQLRelationLoader) to escape it's queries, but
CH>maybe there are more of such effects. Can you help me tracking them down?
CH>How do I get a list of all statements that are sent to the database from the
CH>test suite?
The uppercase/lowercase problem with the database statement should be
handled in the driver for that particular database. Each database seems
to handle this differently and, if I remember correctly, even some JDBC
driver implementations play into this.
More debug info can be seen by running the test suite via the
test[.bat|.sh] script with the -verbose flag. This usually helps me to
track down problems.
I'm not sure of the context in which the errors below occurred. Were
they thrown with the test suite? Can you elaborate?
CH>java.sql.SQLException: UNKNOWN TABLE NAME:TEST_MASTER
CH> at
CH>de.sag.jdbc.tsql.server.AServer.throwSQLException(server/AServer.java
CH>:764)
CH> at
CH>de.sag.jdbc.tsql.server.AServer.sendQueryRequest(server/AServer.java:
CH>439)
CH> at
CH>de.sag.jdbc.tsql.server.AServer.sendQueryRequest(server/AServer.java:
CH>415)
CH> at
CH>de.sag.jdbc.tsql.APreparedStatement.<init>(APreparedStatement.java:68
CH>)
CH> at
CH>de.sag.jdbc.tsql.AConnection.prepareStatement(AConnection.java:158)
CH> at org.exolab.castor.jdo.engine.SQLEngine.create(SQLEngine.java:553)
CH> at
CH>org.exolab.castor.persist.ClassMolder.create(ClassMolder.java:913)
CH> .....
My apologies for the delays. I'm really under a lot of pressure at my
day job right now.
Bruce
--
perl -e 'print unpack("u30","<0G)[EMAIL PROTECTED]&5R\"F9E<G)E=\$\!F<FEI+F-O;0\`\`");'
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev