summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-11-02 18:01:58 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-11-02 18:01:58 +0000
commit562b0c4e1492f052f0c6a102c9660a31e097e8d9 (patch)
treef29b31ff94c4fe037166e36e56405d2dfbd92d9c /src
parent51e319118d5d41d53885369a469290bae82311aa (diff)
downloadhercules-562b0c4e1492f052f0c6a102c9660a31e097e8d9.tar.gz
hercules-562b0c4e1492f052f0c6a102c9660a31e097e8d9.tar.bz2
hercules-562b0c4e1492f052f0c6a102c9660a31e097e8d9.tar.xz
hercules-562b0c4e1492f052f0c6a102c9660a31e097e8d9.zip
AGAIN corrected the sql charserver query that broke TXT->SQL conversion (fixed in r10835, reverted in 11245...)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11642 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/char_sql/char.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/char_sql/char.c b/src/char_sql/char.c
index c72b629c8..84c79e420 100644
--- a/src/char_sql/char.c
+++ b/src/char_sql/char.c
@@ -461,8 +461,8 @@ int mmo_char_tosql(int char_id, struct mmo_charstatus* p)
char esc_name[NAME_LENGTH*2+1];
Sql_EscapeStringLen(sql_handle, esc_name, p->name, strnlen(p->name, NAME_LENGTH));
- if( SQL_ERROR == Sql_Query(sql_handle, "REPLACE INTO `%s` (`account_id`, `char_num`, `name`) VALUES ('%d', '%d', '%s')",
- char_db, p->account_id, p->slot, esc_name) )
+ if( SQL_ERROR == Sql_Query(sql_handle, "REPLACE INTO `%s` (`char_id`, `account_id`, `char_num`, `name`) VALUES ('%d', '%d', '%d', '%s')",
+ char_db, p->char_id, p->account_id, p->slot, esc_name) )
{
Sql_ShowDebug(sql_handle);
}