有没有人设法利用linux / ubuntu 14.04上的odbc库和mariadb 10.1的odbc驱动程序? 从pub安装并运行测试用例后,我收到错误
Cannot find extension library'package:odbc/odbc.dart': error: line 25 pos 1: library handler failed
import "dart-ext:odbc_ext";
^
如果我想编译扩展名,我会遇到一个特殊的错误:
odbc_ext_sql.cc:148:64: error: ‘SQLCancelHandle’ was not declared in this scope
unboxSqlHandle(ARGS(1)));
^
odbc_ext_sql.cc: In function ‘void sqlSetParam(Dart_NativeArguments)’:
odbc_ext_sql.cc:904:64: error: cannot convert ‘SQLINTEGER* {aka int*}’ to ‘SQLLEN* {aka long int*}’ for argument ‘8’ to ‘SQLRETURN SQLSetParam(SQLHSTMT, SQLUSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLULEN, SQLSMALLINT, SQLPOINTER, SQLLEN*)’
unboxSqlIntegerPtr(ARGS(7)));
^
我更喜欢这种方式而不是mysql / sqljocky,需要评估它是否适合生产。