I have a java class called Auction with a field of type char.

the mapping entry for the field looks like:
    <field name="opencode" type="char">
     <sql name="opencode" type="char" />
    </field>

If I do this:
auction = new com.removed.Auction();
try {
            db.begin();
            db.create(object);
            return true;
}  catch (PersistenceException pe) {
finally { db.commit(); }

Nested error: java.sql.SQLException: ERROR: Unterminated quoted string


If instead I give opencode a value, it works fine.
auction = new com.removed.Auction();
auction.setOpencode('c');
try {
            db.begin();
            db.create(object);
            return true;
}  catch (PersistenceException pe) {}
finally { db.commit(); }

Is this a bug?

Don
-- 
** Home web site: http://klickitat.yi.org
** BeeHive Games, Multiplayer Bluetooth PDA Gaming  http://beehivegames.com
** irc: irc.openprojects.net nick: don-o channels: #palmchat,#java

-- 
Sincerely, the Minimalist

[dns.exolab.org 0s mail.dnsvr.com -45m -1s mta507.mail.yahoo.com 45m 38s localhost 1m 
8s klickitat.yi.org 0s *1m 45s ]

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to