plugins/include/dbi.inc
changeset 1912 506170374d35
parent 1874 6bd98dba0f2a
child 1947 e73a1e51833b
     1.1 --- a/plugins/include/dbi.inc	Sun Mar 02 08:10:34 2008 +0000
     1.2 +++ b/plugins/include/dbi.inc	Sun Mar 02 18:01:49 2008 +0000
     1.3 @@ -277,11 +277,14 @@
     1.4   *
     1.5   * @param database		A database Handle.
     1.6   * @param query			Query string.
     1.7 + * @param len			Optional parameter to specify the query length, in 
     1.8 + *						bytes.  This can be used to send binary queries that 
     1.9 + * 						have a premature terminator.
    1.10   * @return				True if query succeeded, false otherwise.  Use
    1.11   *						SQL_GetError to find the last error.
    1.12   * @error				Invalid database Handle.
    1.13   */
    1.14 -native bool:SQL_FastQuery(Handle:database, const String:query[]);
    1.15 +native bool:SQL_FastQuery(Handle:database, const String:query[], len=-1);
    1.16  
    1.17  /**
    1.18   * Executes a simple query and returns a new query Handle for
    1.19 @@ -289,11 +292,14 @@
    1.20   *
    1.21   * @param database		A database Handle.
    1.22   * @param query			Query string.
    1.23 + * @param len			Optional parameter to specify the query length, in 
    1.24 + *						bytes.  This can be used to send binary queries that 
    1.25 + * 						have a premature terminator.
    1.26   * @return				A new Query Handle on success, INVALID_HANDLE
    1.27   *						otherwise.  The Handle must be freed with CloseHandle().
    1.28   * @error				Invalid database Handle.
    1.29   */
    1.30 -native Handle:SQL_Query(Handle:database, const String:query[]);
    1.31 +native Handle:SQL_Query(Handle:database, const String:query[], len=-1);
    1.32  
    1.33  /**
    1.34   * Creates a new prepared statement query.  Prepared statements can