sqlite string escaping?
#1

In PHP there is an function for escaping strings. ex. sqlite_escape_string()
But in pawn there isn't.

So, my question is: are there any custom/build-in functions for escaping strings for sqlite in pawn?
Reply
#2

Maybe you could write your own? Sure it wouldn't be hard.
Reply
#3

Quote:
Originally Posted by gotenks918
Maybe you could write your own? Sure it wouldn't be hard.
i thought of that already, but i don't know wich Characters need to escaped with what in sqlite, i am new to sqllite so...

I used to work with mysql.
Reply
#4

hehe yeah same. Maybe you could do a little bit of research?

http://uk2.php.net/manual/en/functio...ape-string.php

That's the PHP page for it, it says somethings which are escaped but doesn't mention them all.
Reply
#5

yeah, single quotes and un-safe binary characters.

But what are un-safe binary characters? I tryd to search but found only what it means and now. What they are.
Reply
#6

At a quick glance I can't actually find any thing on it, sry. Maybe there is some documentation for sqlite which will explain it all but I'm not sure.
Reply
#7

hmmm, the best i can do is Escape quotes, but if there is any other function please post it here.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)