File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
main/scala/scalikejdbc/async/internal Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -109,6 +109,10 @@ private[scalikejdbc] class AsyncResultSetImpl(rows: IndexedSeq[RowData])
109109 case any => any.toString
110110 }
111111
112+ override def stringOpt (columnIndex : Int ): Option [String ] = Option (string(columnIndex))
113+
114+ override def stringOpt (columnLabel : String ): Option [String ] = Option (string(columnLabel))
115+
112116 override def time (columnIndex : Int ): java.sql.Time = any(columnIndex) match {
113117 case null => null
114118 case t : java.sql.Time => t
Original file line number Diff line number Diff line change @@ -23,7 +23,8 @@ object AsyncLover extends SQLSyntaxSupport[AsyncLover] {
2323
2424 def apply (c : ResultName [AsyncLover ])(rs : WrappedResultSet ): AsyncLover = new AsyncLover (
2525 id = rs.long(c.id),
26- name = rs.string(c.name),
26+ // name = rs.string(c.name),
27+ name = rs.stringOpt(c.name).get,
2728 rating = rs.int(c.rating),
2829 isReactive = rs.boolean(c.isReactive),
2930 lunchtime = rs.timeOpt(c.lunchtime),
You can’t perform that action at this time.
0 commit comments