kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | a159b8bff32c66daf4cc851e32573eb35f4089d6c4653404f7c407e4888838d8 |
|---|---|
| Author | Alexandre Dutra <alexandre.dutra@datastax.com> · 2016-01-25 18:50 +01:00 |
| Committer | Alexandre Dutra <alexandre.dutra@datastax.com> · 2016-01-25 18:50 +01:00 |
| Parents | 708d073b885d |
1 file changed
modified manual/custom_codecs/README.md +2 −2
| @@ -187,8 +187,8 @@ | ||
| 187 | 187 | And here is how to retrieve a `MyPojo` object converted from a JSON document: |
| 188 | 188 | |
| 189 | 189 | ```java |
| 190 | -ResultSet rows = session.execute(...); | |
| 191 | -Row row = one(); | |
| 190 | +ResultSet rs = session.execute(...); | |
| 191 | +Row row = rs.one(); | |
| 192 | 192 | // Let the driver convert the string for you... |
| 193 | 193 | MyPojo myPojo = row.get(1, MyPojo.class); |
| 194 | 194 | // ... or retrieve the raw string if you need it |