diff options
author | David M <davidmj@users.sourceforge.net> | 2006-07-24 10:08:36 +0000 |
---|---|---|
committer | David M <davidmj@users.sourceforge.net> | 2006-07-24 10:08:36 +0000 |
commit | 9532514c2a566437a9524af1dfca298da58fd40a (patch) | |
tree | 95cd37ebfc723ae45216db69625a1858479c94ba /phpBB/posting.php | |
parent | 48b2dc127761640810a8bbd6c59fd3c5be696778 (diff) | |
download | forums-9532514c2a566437a9524af1dfca298da58fd40a.tar forums-9532514c2a566437a9524af1dfca298da58fd40a.tar.gz forums-9532514c2a566437a9524af1dfca298da58fd40a.tar.bz2 forums-9532514c2a566437a9524af1dfca298da58fd40a.tar.xz forums-9532514c2a566437a9524af1dfca298da58fd40a.zip |
OK...
This commit should increase the total number of BBCodes from 31 to 2040. Some things to watch out for:
Each database likes to deal with binary data in its own, special way. They are, quite frankly, too cool for school.
MySQL, MSSQL and Oracle all allow me to send in a default value for their binary column using a hex number. However, MSSQL forces me to send the specific data as a hex number and thus we must CAST it.
PostgreSQL allows me to set a binary column, but with a twist. It demands that the default be in _octal_ and its datatype allows somewhere around a gigabyte's worth of BBCodes ( PGSQL users, we shut you down to 2040 for your own good! )
Firebird has no decent mechanism for allowing me to shuttle in binary data so I must force my way in. By virtue of triggers and a UDF, we ram in our default values.
SQLite is the most bizarre of them all. They have no mechanism for turning an ASCII code into a ASCII character. Because of this, we have a trigger and a UDF (just like Firebird!) but with a twist! The UDF is defined on the PHP side of things instead of SQL. SQLite also demands that it's data be encoded before being sent off.
Other notes:
- SQLite installs again :D
- Firebird nearly installs again :P
- Database backup is not screwed up :P
P.S.
I hope nothing broke :D
git-svn-id: file:///svn/phpbb/trunk@6209 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r-- | phpBB/posting.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php index 164fedb262..077fd2557f 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -868,7 +868,7 @@ if ($submit || $preview || $refresh) 'notify_set' => $post_data['notify_set'], 'poster_ip' => (isset($post_data['poster_ip'])) ? $post_data['poster_ip'] : $user->ip, 'post_edit_locked' => (int) $post_data['post_edit_locked'], - 'bbcode_bitfield' => (int) $message_parser->bbcode_bitfield, + 'bbcode_bitfield' => $message_parser->bbcode_bitfield, 'bbcode_uid' => $message_parser->bbcode_uid, 'message' => $message_parser->message, 'attachment_data' => $message_parser->attachment_data, |