Hello,

I tried to execute the LOCK-Statement with a PreparedStatement like:

PreparedStatement stmt = conn.prepareStatement(
      "LOCK (NOWAIT) ROW tablename KEY id = ? IN EXCLUSIVE MODE");
stmt.setBigDecimal(1, new BigDecimal("1000"));
boolean success = stmt.execute();

The problem is, that stmt.execute() returns false. But the lock will be set
correctly.
Is this a bug?
I'm using the following JDBC driver:
package com.sap.dbtech.jdbc, SAP DB JDBC Driver, SAP AG, 7.4.4    Build
001-000-156-985

Regards,
Kolja

Mit besten Gruessen
Kolja Kleist (Senior Developer)
____________________________________
MediaTransfer AG
Netresearch & Consulting
Rothenbaumchaussee 38, 20148 Hamburg
Tel: (040) 669 625 16
Fax: (040) 669 625 29
URL: http://b2b.mediatransfer.de
____________________________________

_______________________________________________
sapdb.general mailing list
[EMAIL PROTECTED]
http://listserv.sap.com/mailman/listinfo/sapdb.general

Reply via email to