MyBB Community Forums
[F] [PostgreSQL] Adding a attachment [R] - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Community Archive (https://community.mybb.com/forum-106.html)
+--- Forum: Archived Forums (https://community.mybb.com/forum-143.html)
+---- Forum: Archived Development and Support (https://community.mybb.com/forum-155.html)
+----- Forum: Archived Bug Reports (https://community.mybb.com/forum-74.html)
+------ Forum: MyBB 1.4.2 (https://community.mybb.com/forum-100.html)
+------ Thread: [F] [PostgreSQL] Adding a attachment [R] (/thread-40629.html)



[F] [PostgreSQL] Adding a attachment [R] - Chris W. B. - 11-17-2008

On a forum that is running PostgreSQL, a user can't add a attachment.

To reproduce the error, follow the steps below:

1. In a thread, click the "New Reply" button
2. Enter a message into the new thread input box
3. In the "Attachments" section, click "Browse"
5. Select the file you want to attach
6 Now click "Add attachment"

The following error is returned:

MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
    22P02 - ERROR: invalid input syntax for integer: "" 
Query:
    SELECT * FROM trunk_attachments WHERE filename='logo.gif' AND (posthash='fa4510cdde8caa64188cef558b7e1ed5' OR (pid='' AND pid!='0')) 

PostgreSQL 8.3.4
PHP 5.2.6
MyBB 1.4.3


[F] [PostgreSQL] Adding a attachment [R] - Ryan Gordon - 11-17-2008

Thank you for your bug report.

This bug has been fixed in our internal code repository. Please note that the problem will not be fixed here until these forums are updated.

With regards,
MyBB Group