You are viewing an older version of the site. Click here to view
the latest version of this page. (This may be a dead link, if so, try the root page of the docs
here.)
== unsafe_query ==
Executes a query, just like the {{function|query}} function, however, no validation is done to ensure that SQL injections might occur (essentially allowing for concatenation directly in the query). Otherwise, functions exactly the same as query().
=== Vital Info ===
{| style="width: 40%;" cellspacing="1" cellpadding="1" border="1" class="wikitable"
|-
! scope="col" width="20%" |
! scope="col" width="80%" |
|-
! scope="row" | Name
| unsafe_query
|-
! scope="row" | Returns
| mixed
|-
! scope="row" | Usages
| profile, query, [parameters...]
|-
! scope="row" | Throws
| [[../objects/ms.lang.SQLException|ms.lang.SQLException]]
|-
! scope="row" | Since
| 3.3.1
|-
! scope="row" | Restricted
| Yes
|-
! scope="row" | Optimizations
| [[../../Optimizer#OPTIMIZE_DYNAMIC|OPTIMIZE_DYNAMIC]]
|}
=== Usages ===
unsafe_query(profile, query, [parameters...])=== Examples === Sorry, there are no examples for this function! :( ===See Also===
[[API/functions/query.html|query]]
, [[SQL|Learning Trail: SQL]], [[Profiles|Learning Trail: Profiles]]Find a bug in this page? Edit this page yourself, then submit a pull request. (Note this page is automatically generated from the documentation in the source code.)