String sql = "CALL SQL UPDATE registrationform SET "+
"name='" + name + "', description='" + description +
"', bureau_id='" + bureau_id + "' WHERE id='" + id +
"' AS com.val.jxf.jdo.RegistrationForm";
db = jdo.getDatabase();
db.begin();
OQLQuery query = db.getOQLQuery(sql);
results = query.execute();
db.commit();
But it does not work and castor throws exception!
What's wrong? Thanks, in advance!
Ralf Joachim <[EMAIL PROTECTED]> wrote:
"name='" + name + "', description='" + description +
"', bureau_id='" + bureau_id + "' WHERE id='" + id +
"' AS com.val.jxf.jdo.RegistrationForm";
db = jdo.getDatabase();
db.begin();
OQLQuery query = db.getOQLQuery(sql);
results = query.execute();
db.commit();
But it does not work and castor throws exception!
What's wrong? Thanks, in advance!
Ralf Joachim <[EMAIL PROTECTED]> wrote:
See syntax of CALL SQL in documentation.----- Original Message -----From: val leeSent: Friday, November 21, 2003 7:24 AMSubject: [castor-dev] how to use sql in castor?I want to use SQL in castor , not to OQL!
who can help me?
Thanks in advance!
Do You Yahoo!?
您的信箱真的远离垃圾了吗?
