db: remove obsolete _2 functions
This commit is contained in:
parent
a6d0014d7b
commit
d1277c7be5
18
db.php
18
db.php
|
@ -45,16 +45,6 @@ function db_escape_string($s) {
|
|||
}
|
||||
}
|
||||
|
||||
/* I hate MySQL :( */
|
||||
|
||||
function db_escape_string_2($s, $link) {
|
||||
if (DB_TYPE == "pgsql") {
|
||||
return pg_escape_string($s);
|
||||
} else {
|
||||
return mysql_real_escape_string($s, $link);
|
||||
}
|
||||
}
|
||||
|
||||
function db_query($link, $query, $die_on_error = true) {
|
||||
if (DB_TYPE == "pgsql") {
|
||||
$result = pg_query($link, $query);
|
||||
|
@ -77,14 +67,6 @@ function db_query($link, $query, $die_on_error = true) {
|
|||
}
|
||||
}
|
||||
|
||||
function db_query_2($query) {
|
||||
if (DB_TYPE == "pgsql") {
|
||||
return pg_query($query);
|
||||
} else if (DB_TYPE == "mysql") {
|
||||
return mysql_query($link);
|
||||
}
|
||||
}
|
||||
|
||||
function db_fetch_assoc($result) {
|
||||
if (DB_TYPE == "pgsql") {
|
||||
return pg_fetch_assoc($result);
|
||||
|
|
Loading…
Reference in New Issue