Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The Scala 3 compiler reports a warning: ```scala -- [E002] Syntax Warning: /Users/matt/scalasql/scalasql/core/src/DbApi.scala:205:8 205 | try { | ^ | A try without catch or finally is equivalent to putting | its body in a block; no exceptions are handled. 206 | val res = stream(query, fetchSize, queryTimeoutSeconds)( 207 | qr.asInstanceOf[Queryable[Q, Seq[_]]], 208 | fileName, 209 | lineNum 210 | ) 211 | if (qr.isSingleRow(query)) { 212 | val results = res.take(2).toVector 213 | assert( 214 | results.size == 1, 215 | s"Single row query must return 1 result, not ${results.size}" 216 | ) 217 | results.head.asInstanceOf[R] 218 | } else { 219 | res.toVector.asInstanceOf[R] 220 | } 221 | } ```
- Loading branch information