[ 
https://issues.apache.org/jira/browse/CASSANDRA-14943?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16727963#comment-16727963
 ] 

Alex Petrov commented on CASSANDRA-14943:
-----------------------------------------

[~dprutean] to my best knowledge, you should use {{setUdtValue}} not 
{{setObject}}.

> Java Driver - insert UDT type
> -----------------------------
>
>                 Key: CASSANDRA-14943
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-14943
>             Project: Cassandra
>          Issue Type: New Feature
>            Reporter: Pruteanu Dragos
>            Priority: Major
>
> Inserting data in UDT fields is possible using string statements like: 
> INSERT INTO sampleTable( id, udt_filed ) VALUES ( 1, \{a:'aaa',b:'bbb} )
> This seems not to work if using Prepared statement and passing udt_field as 
> setObject( map ) or setString( "JSON '\{a:'aaa',b:'bbb} '").
> Could be one of this be fixed ? I need this for external tools which accept 
> less java objects.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to