29.06.2013, 20:13
Ah sorry, forgot that.
http://dfiles.eu/files/xgosttogj
http://dfiles.eu/files/xgosttogj
Okay. So I just downloaded R26 plugin and include. And i get these errors:
pawn Code:
|
[20:49:40] [DEBUG] CMySQLResult::GetRowData - row: '0', field: '7', data: "4" [20:49:40] [ERROR] cache_get_row_int - invalid data type [20:49:40] [DEBUG] cache_get_row_int - connection handle: 1
I found a bug.
mysql_format() causes the server to crash if the input is too long, on Linux. I don't know the exact character count but seems like mysql_format() is not able to handle long strings. I have been using format() instead of it and everything works perfect. I think you gotta fix it ASAP, as its a very important function for this plugin. As a reminder again, that only happens in Linux. |
No this happens from some other reason. I have no error in the mysql log so it doesn't seem to be related to a query. It seems almost random. If you have it I would appreciate an upload so I can report what function is the cause.
|
mysql_format(SQLHandle, Query, sizeof(Query), "SELECT * FROM foo WHERE bar = '%04d'", 4); printf("Query1: %s", Query); mysql_format(SQLHandle, Query, sizeof(Query), "UPDATE foo SET PosX = '%.2f', PosY = '%06.4f'", 123.4567, 987.654); printf("Query2: %s", Query);
Query1: SELECT * FROM foo WHERE bar = '0004' Query2: UPDATE foo SET PosX = '123.45', PosY = '000987.6540' |