Skip to content

连接错误 #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
yulintianxia opened this issue Jan 25, 2019 · 0 comments
Open

连接错误 #3

yulintianxia opened this issue Jan 25, 2019 · 0 comments

Comments

@yulintianxia
Copy link

非常感谢你的帮助,我不是很会英语,有一个问题,我创建一个连接,在某个函数里面保存该数据,在另外一个函数里面查找这个数据,他们公用一个数据库,需要使用连接,但是在不同函数里面,创建连接,会有
这个错误

非常感谢你的帮助,我不是很会英语,有一个问题,我创建一个连接,在某个函数里面保存该数据,在另外一个函数里面查找这个数据,他们公用一个数据库,需要使用连接,但是在不同函数里面,创建连接,会有
这个错误

Thank you very much for your help. I am not very good at English. There is a problem. I create a connection, save the data in one function, and find the data in another function. They share a database and need to use the connection. But in different functions, creating a connection will have

This mistake

Cannot create a new connection named "db1", because connection with such name already exist and it now has an active connection session.
I also used getConnection (name: string) or connectionManager. get (name: string) to get the required connections.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant