Closed (works as designed)
Project:
Twitter
Version:
6.x-2.6
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
13 Nov 2009 at 15:02 UTC
Updated:
7 Dec 2011 at 00:33 UTC
Trying to install the twitter module on PostgreSQL, I got errors on unknown type numeric_unsigned. I fixed this by creating the 'numeric_unsigned' as alias of the 'int' type, but didn`t work, since the new type doesn`t accept precision and scale parameters.
To fix all the problems, i solved by replacing all the 'numeric' fields in the schema with integer ones, and removing their precision and scale parameters. I`m not sure it is the best way to do that, but it works now..
I`m attaching a patch with the modifies i did on twitter.install.
| Comment | File | Size | Author |
|---|---|---|---|
| twitter-postgres.patch | 1.22 KB | -redShadow- |
Comments
Comment #1
-redShadow- commentedNot already fixed: I am esperiencing other problems using the module on PostgreSQL. I`ll investigate and try to find a way to fix that. (Errors are not really meaningful, I have to debug a bit).
Comment #2
miklBut why use numeric at all, when bigint will do?
Comment #3
john franklin commented+1 need.
I'm running twitter module 2.6 with PostgreSQL and I'm hitting this problem. Rather than convert to int (triggers the bug below), make them signed numeric and all is well. Mostly. Postgres complained about a relation it didn't like. Might have been a fluke here, but it looked like twitter_uid was numeric in one table and int in another, which Postgres didn't like.
#491794: Twitpocalypse bug (will not import if twitter_id greater than 2,147,483,647)
*sigh* I can't wait until Tue Jan 19 03:14:07 2038.
Comment #4
rukaya commentedSo the attached patch doesn't work? I've encountered the same error when trying to install with postgres.
Comment #5
rukaya commentedIn the install file I changed all instances of 'type' => 'numeric' with 'unsigned' => TRUE to 'unsigned' => FALSE, and it now seems to install and work fine.
For everyone else who finds this : http://drupal.org/node/513578
Comment #6
steinmb commentedFixed in this core issue #256001: pgsql driver does not handle unsigned numeric fields