Skip to content

relax-space/test-sql-driver-function

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

test-sql-driver-function

question

docker-entrypoint-initdb.d of mysql docker already supports delimiter, but go-sql-driver still does not support this syntax, resulting in failure to create sql functions

solution

multiStatements=true

root:1234@tcp(127.0.0.1:3309)/fruit?charset=utf8&parseTime=True&loc=UTC&multiStatements=true

go-sql-driver/mysql#1072

start

  1. test mysql(docker) docker-entrypoint-initdb.d
$ docker-compose up -d
$ docker logs -f mysql-fruit
  1. test go-sql-driver
$ go run .

output

hello1 success {0xc0000c0000 0xc0000ba010}
hello2 success {0xc0000c0000 0xc0000ba040}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •