We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe15ea9 commit 504e8e0Copy full SHA for 504e8e0
sql/core/src/main/scala/org/apache/spark/sql/jdbc/DriverQuirks.scala
@@ -49,9 +49,9 @@ private[sql] object DriverQuirks {
49
* Fetch the DriverQuirks class corresponding to a given database url.
50
*/
51
def get(url: String): DriverQuirks = {
52
- if (url.substring(0, 10).equals("jdbc:mysql")) {
+ if (url.startsWith("jdbc:mysql")) {
53
new MySQLQuirks()
54
- } else if (url.substring(0, 15).equals("jdbc:postgresql")) {
+ } else if (url.startsWith("jdbc:postgresql")) {
55
new PostgresQuirks()
56
} else {
57
new NoQuirks()
0 commit comments