RE: build validation

2007-01-30 Thread Randy Layman
We use Junits after the compile (same Ant script) to verify that not only the XML is fine, but that the code (SQL and Java) actually works. Randy -Original Message- From: Steven Pannell [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 30, 2007 3:53 AM To: user-java@iba

RE: Strange behaviour when column is null

2007-01-25 Thread Randy Layman
Could you include the SQL Exception that you are receiving? Randy -Original Message- From: Jonathan Tse [mailto:[EMAIL PROTECTED] Sent: Thursday, January 25, 2007 4:47 AM To: user-java@ibatis.apache.org Subject: Strange behaviour when column is null Hi all, I exp

RE: Problem with fetching data in one to many relationship

2007-01-18 Thread Randy Layman
If there are no entries in table Child then the SQL statement will not return any records. To return the records from Parent with no children, you need to use a LEFT OUTER JOIN. I would suggest using your tool's SQL interpreter to get the query right before trying to incorporate that i

RE: executing several delete statements as one

2006-11-22 Thread Randy Layman
I'm pretty sure you don't need the BEGIN/END tags or the commit. You want: Randy -Original Message- From: navrsale [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 21, 2006 7:14 PM To: user-java@ibatis.apache.org Subject: executing several delete statements as one

RE: Ibatis - DB2 Universal Driver problem

2006-11-17 Thread Randy Layman
The problem is likely in the com/aoc/ito/atoms/ibatis/SCSP0006.xml file. From the error message I would guess you are using a element instead of a element to call a stored procedure. Randy -Original Message- From: smita_b [mailto:[EMAIL PROTECTED] Sent: Friday, Nove

RE: select list: expression values

2006-11-17 Thread Randy Layman
I think your problem might be that your SQL doesn't have a result column ELEMENTO. I believe you should change your SQL to: select TIPO_RIGA_ID, ELEMENTO - 1 AS ELEMENTO, NOME, TIPO_ELEMENTO_ID from TIPI_DATO_RIGA where tipo_dato_id = #id:INTEGER# so that the result set contains the correc

Postgres Stored Procedures, wrong return type

2006-11-16 Thread Randy Layman
I'm trying to invoke a stored procedure in Postgres, but I get an error from the Postgres driver saying (The entire stack trace for the exception is at the end of the email): org.postgresql.util.PSQLException: A CallableStatement function was executed and the return was of type java.sql.T