1.1 --- a/plugins/include/dbi.inc Wed Jul 17 08:05:42 2013 -0400
1.2 +++ b/plugins/include/dbi.inc Thu Jul 18 10:27:12 2013 -0400
1.3 @@ -250,6 +250,18 @@
1.4 native SQL_GetDriverProduct(Handle:driver, String:product[], maxlength);
1.5
1.6 /**
1.7 + * Sets the character set of the current connection.
1.8 + * Like SET NAMES .. in mysql, but stays after connection problems.
1.9 + *
1.10 + * Example: "utf8", "latin1"
1.11 + *
1.12 + * @param database Database Handle.
1.13 + * @param characterset The character set string to change to.
1.14 + * @return True, if character set was changed, false otherwise.
1.15 + */
1.16 +native bool:SQL_SetCharset(Handle:database, const String:charset[]);
1.17 +
1.18 +/**
1.19 * Returns the number of affected rows from the last query.
1.20 *
1.21 * @param hndl A database OR statement Handle.