Hi,
I'm currently trying to get the new J2EE store working with PostgreSQL
without much success.
However, there is a bug in StandardRDBMSAdapter, where a number (0) is
used in an SQL statement when a boolean is expected. I have attached a
corresponding patch below.
Besides that bug I found it necessary to apply a recently posted patch
to J2EEStore, which reactivates some transactional stuff that is
currently commented out due to problems with Tyrex 0.9.
If there are no objections, please apply both patches.
Regards,
Ingo
Index: src/stores/org/apache/slide/store/impl/rdbms/StandardRDBMSAdapter.java
===================================================================
RCS file:
/home/cvspublic/jakarta-slide/src/stores/org/apache/slide/store/impl/rdbms/StandardRDBMSAdapter.java,v
retrieving revision 1.9
diff -u -r1.9 StandardRDBMSAdapter.java
--- src/stores/org/apache/slide/store/impl/rdbms/StandardRDBMSAdapter.java 27 Aug
2002 17:10:02 -0000 1.9
+++ src/stores/org/apache/slide/store/impl/rdbms/StandardRDBMSAdapter.java 20 Jan
+2003 16:29:49 -0000
@@ -1090,8 +1090,8 @@
sql.setLength(0);
sql.append("INSERT INTO SLIDE_REVISION_HISTORY ")
.append("(URI_ID, VERSIONED) ")
- .append("VALUES (").append(uriId).append(", ").append(0)
- .append(")");
+ .append("VALUES (").append(uriId).append(", ")
+ .append(Boolean.FALSE.toString()).append(")");
stmt.execute(sql.toString());
}
@@ -1951,7 +1951,7 @@
sql.setLength(0);
sql.append("INSERT INTO SLIDE_REVISION_HISTORY ")
.append("(URI_ID, VERSIONED) ").append("VALUES (")
- .append(uriId).append(", ").append(0)
+ .append(uriId).append(", ").append(Boolean.FALSE.toString())
.append(")");
stmt.execute(sql.toString());
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>