Sybase: allow connection on custom port

Minor changes to original patch (Whitespace, use // for comments)

Fixes Github issue #9

Signed-off-by: Damien Regad <dregad@mantisbt.org>
Sybase: fix null values returned with ASSOC fetch mode

When selecting from a Sybase DB using ADODB_FETCH_ASSOC mode, all returned
values will be NULL in the result set (fetch modes NUM and BOTH are ok).

Fixes Github issue #10

Signed-off-by: Damien Regad <dregad@mantisbt.org>
Update changelog
Sybase fixes

Thanks to Péter Hadadi
Bump version to 5.19
buildrelease.py: use .tar.gz instead of .tgz extension
buildrelease.py: copy README file to release dir
New uploadrelease.py script

The script copies release files as prepared by buildrelease.py and
upload them to Sourceforge
uploadrelease.py: add documentation upload

In addition to uploading release files to frs.sourceforge.net, the
script also uploads documentation to web.sourceforge.net.

One or the other can be skipped using the -f / -d flags respectively.
buildrelease.py: use git root instead of cwd if no fresh repo

This way the script works even if called from a subdirectory of the
repository.
buildrelease.py: fix origin repository path

There was extra text at the end causing git clone to fail.
buildrelease.py: script output fixes

- print release path and not temp dir at end of process
- files, not tarballs since we also copy docs and readme file now
buildrelease.py: don't copy the main README file

In past releases, John created a simple README file containing the
change log for the version and uploaded that to Sourceforge.
Bump version to 5.20dev
memcache: include_once() to avoid error with PHPUnit

PHPUnit 4.x+ used in conjunction with ADOdb memcache library causes a
'cannot redeclare _rs2serialize' error when including adodb-csv.inc.php.

http://phplens.com/lens/lensforum/msgs.php?id=19489
Whitespace
Reformat SQL statements
Simplify SQL in postgres7 MetaForeignKeys

The original SQL from William Kolodny [William.Kolodny#gt-t.net] was
very complex with multiple sub-select statements.

Through use of regexp_replace() instead of split_part(), we now have
only a single subquery.

Removed obsolete comment.
Add phpDoc