#396: correct type mismatch in data-db-xxx.sql scripts for table Settings
---------------------+------------------------------------------------------
Reporter: mcr | Owner: geonetwork-devel@…
Type: defect | Status: new
Priority: major | Milestone: v2.6.2
Component: General | Version: v2.6.1
Keywords: |
---------------------+------------------------------------------------------
All but one script use integer values for filling the settings table.
INSERT INTO Settings VALUES (701,700,'mdmode',1);
INSERT INTO Settings VALUES (702,700,'tokentimeout',3600);
INSERT INTO Settings VALUES (703,700,'cachesize',60);
The type of the 4th param is a string type. The correct statements are
INSERT INTO Settings VALUES (701,700,'mdmode','1');
INSERT INTO Settings VALUES (702,700,'tokentimeout','3600');
INSERT INTO Settings VALUES (703,700,'cachesize','60');
Only the SQL Server script has the correct statements.
Attached is a patch (based on 2.6.x ) which makes the scripts consistent.
--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/396>
GeoNetwork opensource Developer website <http://trac.osgeo.org/geonetwork>
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.