diff options
Diffstat (limited to 'src/common/sql.c')
-rw-r--r-- | src/common/sql.c | 2 |
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; } |