]> jfr.im git - irc/quakenet/newserv.git/commit
Add raw string type 'R', and table name 'T' to dbsafequery.
authorChris Porter <redacted>
Tue, 16 Sep 2008 05:33:54 +0000 (06:33 +0100)
committerChris Porter <redacted>
Tue, 16 Sep 2008 05:33:54 +0000 (06:33 +0100)
commit2a58dbe9467ee6498180bb788bbd68f42894501e
treeef2ebb591ec36a8b8ab2576500c2869e29d50c96
parent915ef131c48827fdac471bb38b055c0ceb2f1ee8
Add raw string type 'R', and table name 'T' to dbsafequery.
This allows queries like:
  db->safesquery(db, "INSERT INTO ? VALUES (?, ?)", "Tss", "fish", "moo", "bot");
which will end up (depending on db provider) as something like:
  "INSERT INTO fishservice.fish VALUES (E'moo', E'bot');
dbapi2/dbapi2.c