Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[stellation-res] Comments table, why insert empty comment?

Hello,

I still have problems creating the repository with the Oracle backend.
The creation of the Comments table works, but why is an empty comment
inserted in the Comments table? Here is the snippet of
AbstractDBAccessPoint.createRepository I'm talking about:

Table commentsTable = new Table("s_Comments");
commentsTable.addColumn("s_id", _db.getIntegerType()).makePrimaryKey();
commentsTable.addColumn("s_comment", _db.getLongStringType());
_db.createTable(commentsTable);

_db.executeUpdateStatement("INSERT INTO s_Comments(s_id, s_comment)
VALUES (0,'')");

Cheers,

Ringo

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com


Back to the top