function db_version in Drupal 6
Same name in this branch
- 6 includes/database.mysqli.inc \db_version()
- 6 includes/database.mysql.inc \db_version()
- 6 includes/database.pgsql.inc \db_version()
Same name and namespace in other branches
- 5 includes/database.mysqli.inc \db_version()
- 5 includes/database.mysql.inc \db_version()
- 5 includes/database.pgsql.inc \db_version()
Returns the version of the database server currently in use.
Return value
Database server version
Related topics
3 calls to db_version()
- db_status_report in includes/
database.mysqli.inc - Report database status.
- db_status_report in includes/
database.mysql.inc - Report database status.
- db_status_report in includes/
database.pgsql.inc - Report database status.
File
- includes/
database.pgsql.inc, line 39 - Database interface code for PostgreSQL database servers.
Code
function db_version() {
return db_result(db_query("SHOW SERVER_VERSION"));
}