找回密码
 加入
搜索
查看: 2907|回复: 2

[原创] 论坛上pdf文件<mysql.au3> 一个小BUG,不知道是人为还是

[复制链接]
发表于 2014-2-27 21:04:45 | 显示全部楼层 |阅读模式
;_MySQL_Num_Rows

Func _MySQL_Num_Rows($result)
        Local $rows = DllCall("libmysql.dll", "uint64", "mysql_num_rows", "ptr", $result)
        If @error Then Return SetError(1, 0, 0)
        Return __MySQL_ReOrderULONGLONG($rows[0])
EndFunc   ;==>_MySQL_Num_Rows

;__MySQL_ReOrderULONGLONG($rows[0])

Func __MySQL_ReOrderULONGLONG($UINT64)
        Local $int = DllStructCreate("uint64")
        Local $longlong = DllStructCreate("ulong;ulong", DllStructGetPtr($int))
        DllStructSetData($int, 1, $UINT64)
        Return 4294967296 * DllStructGetData($longlong, 1) + DllStructGetData($longlong, 2)
EndFunc   ;==>__MySQL_ReOrderULONGLONG
问题出在:
Return 4294967296 * DllStructGetData($longlong, 1) + DllStructGetData($longlong, 2)
导致查询结果的二维数组无法构造。

原作者不会那么粗心吧,
会不会论坛一些不愿意共享的又想刷分的人。
发表于 2014-2-28 10:53:42 | 显示全部楼层
有可能啊,有可能是不小心的啊。
发表于 2015-5-8 12:05:28 | 显示全部楼层
回复 2# zhongzijie

喔喔!
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-3-29 03:22 , Processed in 0.069433 second(s), 19 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表