HaxeFoundation / HaxeFoundation/haxe

[hl][cpp] mysql-sqlite: try..catch can't catch any error request

Open
#9,282 1 comment 0 reactions 2 assignees Claimed by @hughsando View on GitHub
platform-cpp platform-hl
Dominant language
Haxe
Stars
6.9k
Forks
715
Avg merge
2d 2h
Merged PRs (30d)
11

Description

```haxe
import sys.db.Mysql;
class Test {
static function main() {
var cnx = neko.db.Mysql.connect({
host: "localhost",
port: 3306,
user: "root",
pass: "",
socket: null,
database: "MyBase"
});

try {
cnx.request("select * from noexistTable");//will throw error and crash..
} catch (e:Dynamic) {
trace("can't catch anyting");
}
}
}
```

target:hashlink ,hxcpp

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.