Ahh cool. Good to know.
I will probably still parameterize the version at some point though so we
can run unit tests against postgres 8 and 9 easily.
-Justin
On Fri, Oct 12, 2012 at 7:30 AM, <[email protected]> wrote:
> Hi Justin
>
> I found another solution:
>
> If you use a postgres driver lower than version 9 you can prepare your
> database
> with
>
> ALTER DATABASE dbname SET bytea_output TO 'escape';
>
> I will kick out my <version> tag, prepare my test database and add this
> info to the user guide. I think this is the cleanest solution.
>
>
> Zitat von Justin Deoliveira <[email protected]>:
>
>
> I would use a property to make this configurable. Indeed I ran into this
>> same problem when trying to run postgis tests against a postgresql 9.1
>> database. The protocol for blobs has changed which caused those tests to
>> fail. Since we want to support both major versions of postgresql it makes
>> sense that this version is configurable.
>>
>> Anyways, what you can do is this.
>>
>> 1. Define a property in the root pom, with the default being the current
>> postgresql jdbc driver version.
>>
>> <properties>
>> <postgresql.jdbc.version>8.4-**701.jdbc3</postgresql.jdbc.**version>
>> </properties>
>>
>> 2. Update the dependency management entry.
>>
>> <dependency>
>> <groupId>postgresql</groupId>
>> <artifactId>postgresql</**artifactId>
>> <version>${postgresql.jdbc.**version}</version>
>> </dependency>
>>
>> 3. In imagemosaic-jdbc/pom.xml simply override the property.
>>
>> <properties>
>> <postgresql.jdbc.version>9.1-**901-1.jdbc4</postgresql.jdbc.**version>
>> </properties>
>>
>> -Justin
>>
>> On Fri, Oct 12, 2012 at 2:57 AM, <[email protected]> wrote:
>>
>> Long story for short. The postgis raster online test was broken and
>>> the fix is to update the postgres driver version. The module will not
>>> work with 8.x postgres drivers.
>>>
>>> The global pom contains
>>>
>>> <dependency>
>>> <groupId>postgresql</groupId>
>>> <artifactId>postgresql</**artifactId>
>>> <version>8.4-701.jdbc3</**version>
>>> </dependency>
>>>
>>> The imagemosaic-jdbc pom has to specify its own version.
>>>
>>> <dependency>
>>> <groupId>postgresql</groupId>
>>> <artifactId>postgresql</**artifactId>
>>> <!-- Overriding version number from parent POM. -->
>>> <version>9.1-901-1.jdbc4</**version>
>>> <scope>test</scope>
>>> </dependency>
>>>
>>> Perhaps we should update the version in the global POM ?.
>>> Btw, our postgis jdbc driver is also not up to date.
>>>
>>> Cheers
>>> Christian
>>>
>>>
>>>
>>> ------------------------------**------------------------------**----
>>> This message was sent using IMP, the Internet Messaging Program.
>>>
>>>
>>>
>>>
>>> ------------------------------**------------------------------**
>>> ------------------
>>> Don't let slow site performance ruin your business. Deploy New Relic APM
>>> Deploy New Relic app performance management and know exactly
>>> what is happening inside your Ruby, Python, PHP, Java, and .NET app
>>> Try New Relic at no cost today and get our sweet Data Nerd shirt too!
>>> http://p.sf.net/sfu/newrelic-**dev2dev<http://p.sf.net/sfu/newrelic-dev2dev>
>>> ______________________________**_________________
>>> GeoTools-Devel mailing list
>>> GeoTools-Devel@lists.**sourceforge.net<[email protected]>
>>> https://lists.sourceforge.net/**lists/listinfo/geotools-devel<https://lists.sourceforge.net/lists/listinfo/geotools-devel>
>>>
>>>
>>
>>
>> --
>> Justin Deoliveira
>> OpenGeo - http://opengeo.org
>> Enterprise support for open source geospatial.
>>
>>
>
>
> ------------------------------**------------------------------**----
> This message was sent using IMP, the Internet Messaging Program.
>
>
>
--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
GeoTools-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel