have a look on this commit:
https://github.com/apache/spark/pull/1612/files#diff-0

try this:

 -    stmt.setLong(1, part.lower)
 -    stmt.setLong(2, part.upper)
 +    val parameterCount = stmt.getParameterMetaData.getParameterCount
 +    if (parameterCount > 0) stmt.setLong(1, part.lower)
 +    if (parameterCount > 1) stmt.setLong(2, part.upper)



--
View this message in context: 
http://apache-spark-user-list.1001560.n3.nabble.com/Data-from-Mysql-using-JdbcRDD-tp10994p11331.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@spark.apache.org
For additional commands, e-mail: user-h...@spark.apache.org

Reply via email to