猿问

使用 MSSQL 转到 1.1.1 和 ODBC

目前已启动并运行FreeTDS 0.92.4 / unixODBC 2.3.1,与 MSSQL 服务器连接并能够执行查询等。

我找到了 Go 的 ODBC 实现列表,并尝试了两个粗体:


管理数据库

我收到了一堆弃用警告(查看它们在 OSX 10.8 及更高版本中已弃用的标头)

cc1: warnings being treated as errors

mgodbc.go: In function 'mSQLColAttribute':

mgodbc.go:31: warning: 'SQLColAttributeW' is deprecated (declared at /usr/include/sqlucode.h:128)

mgodbc.go: At top level:

mgodbc.go:44: warning: 'SQLDisconnect' is deprecated (declared at /usr/include/sql.h:896)

mgodbc.go:51: warning: 'SQLGetDiagRecW' is deprecated (declared at /usr/include/sqlucode.h:233)

mgodbc.go:62: warning: 'SQLGetInfoW' is deprecated (declared at /usr/include/sqlucode.h:273)

mgodbc.go:67: warning: 'SQLBindParameter' is deprecated (declared at /usr/include/sqlext.h:2519)

mgodbc.go:70: warning: 'SQLDriverConnectW' is deprecated (declared at /usr/include/sqlucode.h:336)

mgodbc.go:73: warning: 'SQLSetEnvAttr' is deprecated (declared at /usr/include/sql.h:1120)

mgodbc.go:74: warning: 'SQLFreeHandle' is deprecated (declared at /usr/include/sql.h:942)

mgodbc.go:75: warning: 'SQLSetConnectAttrW' is deprecated (declared at /usr/include/sqlucode.h:245)

mgodbc.go:78: warning: 'SQLGetDiagFieldW' is deprecated (declared at /usr/include/sqlucode.h:223)

mgodbc.go:82: warning: 'SQLRowCount' is deprecated (declared at /usr/include/sql.h:1076)

mgodbc.go:98: warning: 'SQLGetData' is deprecated (declared at /usr/include/sql.h:975)

mgodbc.go:99: warning: 'SQLEndTran' is deprecated (declared at /usr/include/sql.h:902)

mgodbc.go:102: warning: 'SQLCloseCursor' is deprecated (declared at /usr/include/sql.h:831)

mgodbc.go:103: warning: 'SQLPrepareW' is deprecated (declared at /usr/include/sqlucode.h:239)


白板的微信
浏览 192回答 1
1回答
随时随地看视频慕课网APP

相关分类

Go
我要回答