File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed
main/scala/scalikejdbc/async/internal Expand file tree Collapse file tree 3 files changed +7
-2
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),
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import play.Project._
44
55object ScalikeJDBCAsyncProject extends Build {
66
7- lazy val _version = " 0.3.1 "
7+ lazy val _version = " 0.3.2 "
88 lazy val scalikejdbcVersion = " 1.7.0"
99 lazy val mauricioVersion = " 0.2.8"
1010 lazy val defaultPlayVersion = " 2.2.1"
You can’t perform that action at this time.
0 commit comments