PDA

Просмотр полной версии : [Вопрос] Ошибки MySQL



DmX
13.03.2016, 04:56
[19:23:11] [ERROR] mysql_format - destination size is too small
[19:23:11] [ERROR] CMySQLQuery::Execute[()] - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''Sx' at line 1
[19:24:23] [ERROR] mysql_format - destination size is too small
[19:24:23] [ERROR] CMySQLQuery::Execute[()] - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''Ni' at line 1
[19:24:38] [ERROR] CMySQLQuery::Execute[()] - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''Sxx' at line 1
[21:36:21] [ERROR] mysql_format - destination size is too small
[21:36:21] [ERROR] CMySQLQuery::Execute[()] - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''_yTKa_B_Tanka)' at line 1
[21:36:32] [ERROR] CMySQLQuery::Execute[()] - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''_yTKa_B_Tanka)(_' at line 1

VVWVV
13.03.2016, 05:03
Код не помешал бы.

«destination size is too small».
Google Translate: «размер назначения слишком мал».
Выделенное место в массиве меньше, чем строка.

«You have an error in your SQL syntax»
Google Translate: «У вас ошибка в вашем SQL синтаксиса».
В запросе какая-то синтаксическая ошибка.

DmX
13.03.2016, 05:05
Даже строк не знаю )

Sp1ke
13.03.2016, 05:27
Даже строк не знаю )

[19:23:11] [ERROR] CMySQLQuery::Execute[()] - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''Sx' at line 1



Соглашусь, очень сложно найти строку, проблема набирает глобальные маштабы

m1n1vv
13.03.2016, 12:44
Перед WHERE `pID` = '%d' есть запятая? Если да, то сотри.

Примеры:

format(query_string, sizeof(query_string), "%s `Name` = '%s',", query_string, pInfo[playerid][pPassword]);
format(query_string, sizeof(query_string), "%s WHERE `ID` = '%d'", query_string, pInfo[playerid][pID]);

`Name` = '%s', WHERE `ID` = '%d'

Wise
13.03.2016, 12:52
delete
слепой я баран

m1n1vv
13.03.2016, 12:53
del

$continue$
13.03.2016, 13:04
Так в чем проблема их узнать? (mysql_log(LOG_ALL);)

Даже строк не знаю )

DmX
13.03.2016, 16:10
У меня нет паблик сохранения. У меня раскидан мод на сохранения сразу при выполнении действия.

m1n1vv
13.03.2016, 16:55
У меня нет паблик сохранения. У меня раскидан мод на сохранения сразу при выполнении действия.

Но все равно же сохранение идет


Перед WHERE `pID` = '%d' есть запятая? Если да, то сотри.

Примеры:

format(query_string, sizeof(query_string), "%s `Name` = '%s',", query_string, pInfo[playerid][pPassword]);
format(query_string, sizeof(query_string), "%s WHERE `ID` = '%d'", query_string, pInfo[playerid][pID]);

`Name` = '%s', WHERE `ID` = '%d'

$continue$
13.03.2016, 17:03
http://static.ozone.ru/multimedia/books_covers/1005718450.jpg

Думаешь поможет найти синтаксическую ошибку? А то ты наотрез отказываешься подключать mysql_log(LOG_ALL); (В OnGameModeInit)

У меня нет паблик сохранения. У меня раскидан мод на сохранения сразу при выполнении действия.