You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Alex Petrov (JIRA)" <ji...@apache.org> on 2018/12/23 12:24:00 UTC

[jira] [Commented] (CASSANDRA-14943) Java Driver - insert UDT type

    [ 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-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org