logo       


Re: invalid column type: msg#00375

Subject: Re: invalid column type
Hi Jason,

According to the stack trace you've posted, i would say that you are facing 
problems with data
type conversions done by your JDBC driver.
I guess your 'isFeature' property is a boolean value and your table column 
'isFeature' is of
another type?
If so, i faced this problem before: my java objects held boolean values and my 
database columns
used to hold varchar2(1) values as 'Y', 'N' or 'T', 'F'.
If all i mentioned above is your current situation, my advise is: write a CTH 
(Custom Type
Handler). The iBatis Wiki has some nice details about this issue.

Hope that helped.

Cheers,
 Daniel Silva.



--- Jason Punzalan <jasonpunzalan@xxxxxxxxx> wrote:
> this works on mysql but not on oracle. same table layout. any ideas? 
> 
>       <insert id="insertContent" parameterClass="Content" >
>               <![CDATA[
>                       insert into content(publication, modified_by, priority, 
> source,
> type_id, body, id, subtitle, title, isFeature, modified, summary,
> page_id, enabled, created_by, created, status, sub_type)
>                       values(#publication#, #modifiedBy#, #priority#, 
> #source#, #typeId#,
> #body#, #id#, #subtitle#, #title#, #isfeature#, now(), #summary#,
> #pageId#, #enabled#, #createdBy#, now(), "draft", #subType.id#)
>               ]]>
>       </insert>
> 
> 
> 
> org.springframework.jdbc.UncategorizedSQLException: (SqlMapClient
> operation): encountered SQLException [
> --- The error occurred in com/ruderfinn/maps/Content.xml.  
> --- The error occurred while applying a parameter map.  
> --- Check the insertContent-InlineParameterMap.  
> --- Check the parameter mapping for the 'isfeature' property.  
> --- Cause: java.sql.SQLException: Invalid column type]; nested
> exception is com.ibatis.common.jdbc.exception.NestedSQLException:
> --- The error occurred in com/ruderfinn/maps/Content.xml.  
> --- The error occurred while applying a parameter map.  
> --- Check the insertContent-InlineParameterMap.  
> --- Check the parameter mapping for the 'isfeature' property.  
> --- Cause: java.sql.SQLException: Invalid column type
> com.ibatis.common.jdbc.exception.NestedSQLException:   
> --- The error occurred in com/ruderfinn/maps/Content.xml.  
> --- The error occurred while applying a parameter map.  
> --- Check the insertContent-InlineParameterMap.  
> --- Check the parameter mapping for the 'isfeature' property.  
> --- Cause: java.sql.SQLException: Invalid column type
> Caused by: java.sql.SQLException: Invalid column type
> 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
Search:
Java, servers, webhosting, windows, cisco ...
more...
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
encryption.gpg....    ietf.rfc822/199...    freebsd.devel.i...    lang.haskell.li...    mail.squirrelma...    web.zope.plone....    yellowdog.gener...    text.xml.xalan....    recreation.phot...    kde.devel.educa...    hardware.bus.ca...    printing.ghosts...    voip.peering/20...    assembly/2006-0...    org.user-groups...    culture.interne...    network.i2p/200...    boot-loaders.ya...    xfree86.render/...    qnx.openqnx.dev...    jakarta.velocit...    user-groups.pal...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe