Some neat stuff, the new DBAL function has the potential of removing somewhere in...
commited09ae5d47951a7d6afe5104081a4313bf6d3aa6
authordavidmj <davidmj@89ea8834-ac86-4346-8a33-228a782c2dd0>
Wed, 2 Apr 2008 08:28:21 +0000 (2 08:28 +0000)
committerdavidmj <davidmj@89ea8834-ac86-4346-8a33-228a782c2dd0>
Wed, 2 Apr 2008 08:28:21 +0000 (2 08:28 +0000)
tree4ea9c652cfdb24bf862e2ba4db7d6ebd33ab4786
parent276a448f3ff7217c8471ac0392d75029921afcd6
Some neat stuff, the new DBAL function has the potential of removing somewhere in the ballpark of 40% of all the DBAL code. It combines a few very common idioms into one statement, allowing us to implicitly use prepared statements. Short term advantages are the ability to remove the gross code that attempts to work around DB2, Oracle and Firebird. Long term advantages include removing the burden of sanitizing data (at least on input) from our end and placing it on shoulders of the backend PHP driver.

Also included is a new posting API I am working on. It is not a real API in so much as it is a backend that a "nice" API could use. User submitted functions are welcome :) It represents a massive simplification in post and topic accounting and a generalization of concepts like "soft deletion" as it works across both topics and posts (yes, this has preliminary support for soft deletions). The only "interesting" problem left is global topics, this has yet to be solved.

Enough talk, time for sleep.

P.S.
Sorry if I broke stuff, was not done on purpose :)

git-svn-id: http://code.phpbb.com/svn/phpbb/trunk@8485 89ea8834-ac86-4346-8a33-228a782c2dd0
12 files changed:
phpBB/develop/posting-api.php [new file with mode: 0644]
phpBB/includes/acp/acp_attachments.php
phpBB/includes/db/db2.php
phpBB/includes/db/firebird.php
phpBB/includes/db/mssql.php
phpBB/includes/db/mssql_odbc.php
phpBB/includes/db/mysql.php
phpBB/includes/db/mysqli.php
phpBB/includes/db/oracle.php
phpBB/includes/db/postgres.php
phpBB/includes/db/sqlite.php
phpBB/style.php