Raised This Month: $12 Target: $400
 3% 

[MySQL] Transaction callback crashes


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Starbish
AlliedModders Donor
Join Date: Oct 2011
Location: South Korea
Old 11-28-2015 , 13:35   [MySQL] Transaction callback crashes
Reply With Quote #1

PHP Code:
txnHandle.AddQuery(cQuery); 
PHP Code:
dbIndex.Execute(txnHandleSQL_TxnOnSuccess_InsertRowForAllUserSQL_TxnOnFailure_InsertRowForAllUserclient); 
PHP Code:
public void SQL_TxnOnSuccess_InsertRowForAllUser(Database dbIndexany dataint numQueriesDBResultSet[] dbrQueryResultany[] client){

    
UMG_PrintAlert("[SQL_TxnOnSuccess_InsertRowForAllUser] %N's row has been added."client[0]);

I didn't use AddQuery()'s second parameter so there's no actual value on any[] client

and when i use the code below,
PHP Code:
UMG_PrintAlert("[SQL_TxnOnSuccess_InsertRowForAllUser] %N's row has been added."client[0]); 
server gets crashed. maybe it's a problem of using %N and client[0] not transaction's problem.
__________________

Last edited by Starbish; 11-28-2015 at 13:36.
Starbish is offline
ImACow
AlliedModders Donor
Join Date: Feb 2015
Old 09-08-2016 , 09:00   Re: [MySQL] Transaction callback crashes
Reply With Quote #2

I'm working with Transactions currently & experiencing crashes. did you solve your problem at all ?
__________________
ImACow is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 09-08-2016 , 19:42   Re: [MySQL] Transaction callback crashes
Reply With Quote #3

Your not trying to UMG_PrintAlert to client index 0?
__________________
Neuro Toxin is offline
Potato Uno
Veteran Member
Join Date: Jan 2014
Location: Atlanta, Georgia
Old 09-08-2016 , 22:26   Re: [MySQL] Transaction callback crashes
Reply With Quote #4

%N to client index 0 would expand to like "Console<0><Console><>" or something like that. Even if the index is invalid, it would error out and not explode (at least it does in TF2).

If this is an SM bug, the accelerator logs would be helpful (even from windows servers).

Last edited by Potato Uno; 09-08-2016 at 22:27.
Potato Uno is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:36.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode