HaxeFoundation / HaxeFoundation/haxe

[hl][mysql] sys.db.Connection close function not work on linux.

Open
#9,742 0 comments 0 reactions 0 assignees View on GitHub
bug platform-hl
Dominant language
Haxe
Stars
6.9k
Forks
715
Avg merge
2d 2h
Merged PRs (30d)
11

Description

class Main {
static function main() {

var cnx = sys.db.Mysql.connect({
host : "127.0.0.1",
port : 33826,
user : "test",
pass : "test",
database : "test"
});

var rs= cnx.request('select * from fa_customer');
trace(rs.length);

cnx.close();//work ok on windows.but fail on ubuntu 18.
}

}

![image](https://user-images.githubusercontent.com/748320/88265048-5c91b080-ccff-11ea-9cff-4c055d15b702.png)

![image](https://user-images.githubusercontent.com/748320/88265121-7f23c980-ccff-11ea-86e0-2199db0f3b4c.png)

**hxcpp** test ok

![image](https://user-images.githubusercontent.com/748320/88265364-f0fc1300-ccff-11ea-9773-cdfeefba5df8.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.