Skip to content

Commit

Permalink
update code comments for new callExtension limit
Browse files Browse the repository at this point in the history
  • Loading branch information
firefly2442 committed Sep 29, 2012
1 parent 44ed6c6 commit 0544e32
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Arma2NETMySQLPlugin/SQL.cs
Expand Up @@ -28,7 +28,7 @@ protected Boolean validLength(string[][] check, int max_length)
* callExtension is the method that is used by Arma2NET to pass information between itself and Arma2
* callExtension has a size limit for the max amount of data that can be passed:
* http://community.bistudio.com/wiki/Extensions#A_few_technical_considerations
* The limit is 4 Kilobytes
* The limit is 16 Kilobytes (for Arma 2 beta 97299)
* One character = one byte
* The Wiki notes that this size limit could change through future patches.
* https://dev-heaven.net/issues/25915
Expand All @@ -37,7 +37,7 @@ protected Boolean validLength(string[][] check, int max_length)
* "From version 1.5, Arma2NET supports plugins requiring the maximum result size as an argument to the Run method.
* You can use this to ensure that a plugin won't return a result that is too long for Arma 2 to handle."
*
* In Arma2NET, 4095 characters is the limit
* In Arma2NET, 16383 characters is the limit
* The last character is reserved for null
*
*/
Expand Down
2 changes: 1 addition & 1 deletion ReadMe.html
Expand Up @@ -180,7 +180,7 @@ <h2>Contents</h2>
<p>Arma2NETMySQL Plugin uses the callExtension function, however, there are some
<a href="http://community.bistudio.com/wiki/Extensions#A_few_technical_considerations">technical considerations</a> as part of this.
</p>
<p>Returning results in Arma 2 beta 97299 has a limit of 16384 (16 KB) characters. If you try to run a query that will return a result longer than 16384 characters,
<p>Returning results in Arma 2 beta 97299 has a limit of 16383 (~16 KB) characters. If you try to run a query that will return a result longer than 16384 characters,
it will return the string "TooLong". Then you know you will need to limit the number of results that are returned. In MySQL,
you can use <a href="https://dev.mysql.com/doc/refman/5.0/en/select.html">the limit parameter</a>, or in SQLite,
<a href="https://www.sqlite.org/lang_select.html">the limit parameter</a>. This is a limitation of
Expand Down

0 comments on commit 0544e32

Please sign in to comment.