Zhan
(Mr Zhan)
August 31, 2019, 8:07am
1
Mysql tinyInt question
Hashlink convert to Int
but Neko convert to Bool? Maybe Neko is wrong.
var result = cnx.request('select * from fa_customer');
if (result != null) {
for (row in result) {
trace(row.isgm);//neko return false,but Hashlink return 0
}
}
ibilon
(Valentin Lemière)
August 31, 2019, 8:43am
2
What happens if you do trace(row.isgm + 0);
?
The value is likely to be dynamic so the trace might be wrong.
Zhan
(Mr Zhan)
August 31, 2019, 8:45am
3
neko can’t cast bool to Uint or Int .
bug report here
opened 03:33AM - 31 Aug 19 UTC
closed 07:08AM - 31 Aug 19 UTC
it's seem all cast between ( Int,Uint) and Bool all wrong .
package;
import neko.Lib;
/**
* ...
* @author sonygod
*/
class Main
{
static...