diff options
author | amber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-12-28 02:51:31 +0000 |
---|---|---|
committer | amber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-12-28 02:51:31 +0000 |
commit | dcb23ca386a2b7bdf94aedc8ad4886139dc45aa5 (patch) | |
tree | 96980e3c15b42013b8d76ffc7ed3160eec372136 /src/char_sql/int_party.c | |
parent | b9d0ad6565a655649c6905cceb959c7274398011 (diff) | |
download | hercules-dcb23ca386a2b7bdf94aedc8ad4886139dc45aa5.tar.gz hercules-dcb23ca386a2b7bdf94aedc8ad4886139dc45aa5.tar.bz2 hercules-dcb23ca386a2b7bdf94aedc8ad4886139dc45aa5.tar.xz hercules-dcb23ca386a2b7bdf94aedc8ad4886139dc45aa5.zip |
Mark the statements TBR
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@827 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char_sql/int_party.c')
-rw-r--r-- | src/char_sql/int_party.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/char_sql/int_party.c b/src/char_sql/int_party.c index 84cb49d6a..05a607a15 100644 --- a/src/char_sql/int_party.c +++ b/src/char_sql/int_party.c @@ -41,7 +41,7 @@ int inter_party_tosql(int party_id,struct party *p) } // Check if party exists - sprintf(tmp_sql,"SELECT count(*) FROM `%s` WHERE `party_id`='%d'",party_db, party_id); + sprintf(tmp_sql,"SELECT count(*) FROM `%s` WHERE `party_id`='%d'",party_db, party_id); // TBR if(mysql_query(&mysql_handle, tmp_sql) ) { printf("DB server Error - %s\n", mysql_error(&mysql_handle) ); return 0; @@ -56,8 +56,8 @@ int inter_party_tosql(int party_id,struct party *p) if (party_exist >0){ // Check members in party - sprintf(tmp_sql,"SELECT count(*) FROM `%s` WHERE `party_id`='%d'",char_db, party_id); - if(mysql_query(&mysql_handle, tmp_sql) ) { + sprintf(tmp_sql,"SELECT count(*) FROM `%s` WHERE `party_id`='%d'",char_db, party_id); // TBR + if(mysql_query(&mysql_handle, tmp_sql) ) { printf("DB server Error - %s\n", mysql_error(&mysql_handle) ); return 0; } @@ -151,7 +151,7 @@ int inter_party_fromsql(int party_id,struct party *p) memset(p, 0, sizeof(struct party)); - sprintf(tmp_sql,"SELECT `party_id`, `name`,`exp`,`item`, `leader_id` FROM `%s` WHERE `party_id`='%d'",party_db, party_id); + sprintf(tmp_sql,"SELECT `party_id`, `name`,`exp`,`item`, `leader_id` FROM `%s` WHERE `party_id`='%d'",party_db, party_id); // TBR if(mysql_query(&mysql_handle, tmp_sql) ) { printf("DB server Error (select `party`)- %s\n", mysql_error(&mysql_handle) ); return 0; @@ -175,7 +175,7 @@ int inter_party_fromsql(int party_id,struct party *p) mysql_free_result(sql_res); // Load members - sprintf(tmp_sql,"SELECT `account_id`, `name`,`base_level`,`last_map`,`online` FROM `%s` WHERE `party_id`='%d'",char_db, party_id); + sprintf(tmp_sql,"SELECT `account_id`, `name`,`base_level`,`last_map`,`online` FROM `%s` WHERE `party_id`='%d'",char_db, party_id); // TBR if(mysql_query(&mysql_handle, tmp_sql) ) { printf("DB server Error (select `party`)- %s\n", mysql_error(&mysql_handle) ); return 0; |