Add optional database connection parameters to the DatabaseLink. This

replaces the old, automatic setting of LongReadLen and LongTruncOk in
SQL.pm, and is much more flexible.
Fix some documentation with allowMacroAccess in the DatabaseLink.
Additional tests for DatabaseLink.
Document the new parameter behavior in the changelog and gotchas file.
This commit is contained in:
Colin Kuskie 2007-07-25 23:46:20 +00:00
parent 350d7f6e01
commit a9f45865e6
8 changed files with 78 additions and 29 deletions

View file

@ -97,6 +97,8 @@
- Add user to transactions list and pending transactions.
- fix: autolinking in wiki pages with manual links didn't work properly
- fix: javascript errors in SQL Form date inputs in IE
- Added optional parameters for DatabaseLinks so that users can setup their
database's with things like LongReadLen, etc.
7.3.22
- fix: relative links sent out in emails don't work properly

View file

@ -21,6 +21,10 @@ save you many hours of grief.
the userProfileData table will need to be updated to reflect these
changes.
* DatabaseLinks no longer automatically set LongReadLen and LongTruncOk
for Oracle or ODBC databases. These parameters, and others, can now
be set in the DatabaseLink.
* WebGUI now requires the following additional perl modules to operate,
and you should install them prior to upgrading:

View file

@ -33,18 +33,21 @@ addNewsletter($session);
addHttpProxyUrlPatternFilter($session);
addCanStartThreadToCS($session);
addPostCaptchaToCS($session);
addMacroAccessToDatabaseLinks($session);
addFieldsToDatabaseLinks($session);
finish($session); # this line required
#-------------------------------------------------
sub addMacroAccessToDatabaseLinks {
sub addFieldsToDatabaseLinks {
my $session = shift;
print "\tAdding allowMacroAccess setting to Database Links..." unless ($quiet);
print "\tAdding new fields to Database Links...\n" unless ($quiet);
print "\t\tAdding allowMacroAccess setting to Database Links...\n" unless ($quiet);
$session->db->write("ALTER TABLE databaseLink add column allowMacroAccess integer NOT NULL default 0");
print "\t\tAdding additionalParameters setting to Database Links..." unless ($quiet);
$session->db->write("ALTER TABLE databaseLink add column additionalParameters VARCHAR(255) NOT NULL default ''");
print "OK\n";
return;
}