Global/SQLStr

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
m
Line 3: Line 3:
 
|Parent=Global
 
|Parent=Global
 
|Description=Returns the input value in an escaped form so that it can safely be used inside of queries. The returned value is surrounded by quotes unless noQuotes is true. Alias of {{LibraryFunction|sql|SQLStr}}
 
|Description=Returns the input value in an escaped form so that it can safely be used inside of queries. The returned value is surrounded by quotes unless noQuotes is true. Alias of {{LibraryFunction|sql|SQLStr}}
 
 
|Realm=Shared
 
|Realm=Shared
 
|IsClass=No
 
|IsClass=No
Line 20: Line 19:
 
{{Ret
 
{{Ret
 
|type=string
 
|type=string
|desc=escaped input
+
|desc=Escaped input
 
}}
 
}}

Revision as of 21:37, 18 April 2014

 SQLStr( )

Contents

Description

Returns the input value in an escaped form so that it can safely be used inside of queries. The returned value is surrounded by quotes unless noQuotes is true. Alias of sql.SQLStr

Arguments

string input

String to be escaped

Arguments

boolean noQuotes=false

Whether the returned value should be surrounded in quotes or not

Returns

string

Escaped input
Personal tools
Navigation