Closed (fixed)
Project:
Weather
Version:
7.x-2.11
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
29 Jul 2015 at 22:22 UTC
Updated:
9 Sep 2015 at 12:24 UTC
Jump to comment: Most recent
There's one issue causing this module from working properly with PostgreSQL. There's a comparision with strings and integers in the code, more specifically period = 2. In MySQL comparing integers with strings will perform an implicit type convertion. In PostgreSQL however this is illegal and causes an error:
PDOException: SQLSTATE[42883]: Undefined function: 7 ERROR: operator does not exist: character varying = integer
The attached patch will properly quote the values so they are strings instead. This has been tested on a site.
| Comment | File | Size | Author |
|---|---|---|---|
| contrib-weather-fix-postgresql.patch | 1.4 KB | JimmyAx |
Comments
Comment #2
toddy commented