scalikejdbc-async icon indicating copy to clipboard operation
scalikejdbc-async copied to clipboard

Message: Error 1059 - #42000 - Identifier name too long

Open rhande-mdsol opened this issue 4 years ago • 0 comments

I was using scalikejdbc-sync and now i want to use

scalikejdbc-async.

I have added

      "org.scalikejdbc"       %% "scalikejdbc-async" % "0.14.+",
      "com.github.jasync-sql" %  "jasync-mysql"      % "1.1.+"

to my dependencies

I am trying to setup a connection pool using

     val ds: HikariDataSource = {

  // read from config file 
   }

  AsyncConnectionPool.singleton(ds.getJdbcUrl, ds.getUsername, ds.getPassword)

        val query = SQLSyntax.createUnsafely(filteredQuery)
        val result = AsyncDB.localTx { implicit tx =>
        sql"$query"
              .map(rs => rs.long(1))
       .single()
       .future()
   }

but I get

Message: Error 1059 - #42000 - Identifier name is too long The is nothing but my JDBC URL. Is this a bug in the library ?

rhande-mdsol avatar Feb 10 '21 16:02 rhande-mdsol