mirror of
https://github.com/DBD-SQLite/DBD-SQLite
synced 2025-06-07 22:28:47 -04:00
DBD-SQLite: removed sqlite_quote which is not, and will not be used (#45578)
This commit is contained in:
parent
899a69e15a
commit
aa814eecde
1 changed files with 0 additions and 22 deletions
22
dbdimp.c
22
dbdimp.c
|
@ -308,28 +308,6 @@ sqlite_st_prepare (SV *sth, imp_sth_t *imp_sth,
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
char *
|
|
||||||
sqlite_quote(imp_dbh_t *imp_dbh, SV *val)
|
|
||||||
{
|
|
||||||
dTHX;
|
|
||||||
STRLEN len;
|
|
||||||
char *cval = SvPV(val, len);
|
|
||||||
SV *ret = sv_2mortal(NEWSV(0, SvCUR(val) + 2));
|
|
||||||
sv_setpvn(ret, "", 0);
|
|
||||||
|
|
||||||
while (len) {
|
|
||||||
switch (*cval) {
|
|
||||||
case '\'':
|
|
||||||
sv_catpvn(ret, "''", 2);
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
sv_catpvn(ret, cval, 1);
|
|
||||||
}
|
|
||||||
*cval++; len--;
|
|
||||||
}
|
|
||||||
return SvPV_nolen(ret);
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
sqlite_st_reset (pTHX_ SV *sth)
|
sqlite_st_reset (pTHX_ SV *sth)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue