Closed
Description
class Main {
static function main() {
var cnx = sys.db.Sqlite.open("./backup.data");
trace('create table now');
cnx.request("
CREATE TABLE IF NOT EXISTS fa_customer (
id integer NOT NULL PRIMARY KEY AUTOINCREMENT,
nickname text(255)
)");
trace('create table finish');
var sql = 'INSERT INTO fa_customer (nickname) VALUES (${cnx.quote("豪鬼")})';
trace(sql);
cnx.request(sql);
trace("sqlite init finish");
}
}
build.hxml
-cp src
-D analyzer-optimize
-main Main
--each
--hl test.hl
--next
--cpp bin
cpp version
I:\test\testcpp\bin>Main.exe
src/Main.hx:5: create table now
src/Main.hx:16: create table finish
src/Main.hx:19: INSERT INTO fa_customer (nickname) VALUES ('璞')
Error : ValueException
hl verion
I:\test\testcpp>hl test.hl
src/Main.hx:5: create table now
src/Main.hx:16: create table finish
src/Main.hx:19: INSERT INTO fa_customer (nickname) VALUES ('豪鬼')
src/Main.hx:22: sqlite init finish
Metadata
Metadata
Assignees
Labels
No labels