Jump to content

_MySQL UDF


Recommended Posts

Hi!

i got a problem with the example script of _MySQL UDF

$query = "SELECT * FROM vp_nameparts;"
_MySQL_Real_Query($MysqlConn, $query)


$res = _MySQL_Store_Result($MysqlConn)

$fields = _MySQL_Num_Fields($res)

$rows = _MySQL_Num_Rows($res)
MsgBox(0, "", "rows: " & $rows & " fields: " & $fields)

Problem is that, it returns me rows 2928349283492983489 or something like that, when i have exctly 22 rows in total.

Posted Image

so i cant really work with it :S

any idea how to resolve it?

Link to comment
Share on other sites

Oh yeah. In previous AutoIt-Versions, the return of uint64 was wrong, so I included a func to fix it. Now the bug in AutoIt was fixed and my func returns now a wrong number. I'll reupload it now Done

PS: your query has a result of 57 rows.

Edited by ProgAndy

*GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes

Link to comment
Share on other sites

ohh, another problem occured (and sorry for pm)

mysql.au3 (460) : ==> Variable used without being declared.:
If Not $MySQL_ptr Then Return SetError(3,0,0)
If Not ^ ERROR
>Exit code: 1    Time: 24.118

when i run the test.au3 in your package

Edited by Stormrage
Link to comment
Share on other sites

ohh, another problem occured (and sorry for pm)

mysql.au3 (460) : ==> Variable used without being declared.:
If Not $MySQL_ptr Then Return SetError(3,0,0)
If Not ^ ERROR
>Exit code: 1    Time: 24.118

when i run the test.au3 in your package

Oh no. A copy&paste error and i didn't use that particular function in my testscript... Please download again, it should be fixed now.

*GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...