mariadb escape string: Difference between revisions

From Onset Developer Wiki
Created page with "{{Info|Function|Server|1.0}} {{Notice|This function is provided by the official MariaDB plugin.}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|mariadb_escape_string(hand..."
 
28days (talk | contribs)
No edit summary
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
{{Notice|This function is provided by the official [[MariaDB]] plugin.}}
{{Notice|This function is provided by the official [[MariaDB]] plugin.}}


{{FuncDescription|__EDIT_ME__}}
{{FuncDescription|Escapes the specified string from SQL injections.}}


{{FuncSyntax|mariadb_escape_string(handle_id, source_str)}}
{{FuncSyntax|mariadb_escape_string(handle_id, source_str)}}


{{FuncParameters}}
{{FuncParameters}}
{{FuncParam|handle_id|__EDIT_ME__}}
{{FuncParam|handle_id|The database handle identifier.}}
{{FuncParam|source_str|__EDIT_ME__}}
{{FuncParam|source_str|The string you want to escape.}}


{{FuncReturnValue|__EDIT_ME__}}
{{FuncReturnValue|Returns the escaped string.}}


== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang="Lua">
local escapedString = mariadb_escape_string(handleId, "O'Nell Brothers")
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
__EDIT_ME__
{{MariaDBFunctions}}

Latest revision as of 09:19, 14 December 2019