summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-01-13 15:44:47 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-01-13 15:44:47 +0000
commit3152d7f51d385cc7abca5eb93d00a4284726986d (patch)
treef8ee2678e6d5bf97bcb9ee87ec70f57d458dc45a /src/common
parent3b1dd44c88484af3585bcfea0e94994330383019 (diff)
downloadhercules-3152d7f51d385cc7abca5eb93d00a4284726986d.tar.gz
hercules-3152d7f51d385cc7abca5eb93d00a4284726986d.tar.bz2
hercules-3152d7f51d385cc7abca5eb93d00a4284726986d.tar.xz
hercules-3152d7f51d385cc7abca5eb93d00a4284726986d.zip
Fixed Sql_SetEncoding() returning SQL_ERROR when it succeeds and vice versa (thanks to Rail for noticing it).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13447 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/common')
-rw-r--r--src/common/sql.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/sql.c b/src/common/sql.c
index 5a70cc86a..c0668d17c 100644
--- a/src/common/sql.c
+++ b/src/common/sql.c
@@ -162,7 +162,7 @@ int Sql_GetColumnNames(Sql* self, const char* table, char* out_buf, size_t buf_l
/// Changes the encoding of the connection.
int Sql_SetEncoding(Sql* self, const char* encoding)
{
- if( self && mysql_set_character_set(&self->handle, encoding) )
+ if( self && mysql_set_character_set(&self->handle, encoding) == 0 )
return SQL_SUCCESS;
return SQL_ERROR;
}