schema doesn't install in PostgreSQL

Josh Waihi - August 13, 2009 - 21:38
Project:Facebook-style Statuses (Microblog)
Version:6.x-2.0-rc1
Component:Code - Functionality
Category:bug report
Priority:critical
Assigned:Unassigned
Status:closed
Description

CREATE TABLE facebook_status (
sid serial CHECK (sid >= 0),
uid int_unsigned NOT NULL default 0,
pid int_unsigned NOT NULL default 0,
status_time int NOT NULL default 0,
status text(1024) NOT NULL default '',
PRIMARY KEY (sid)
)

a TEXT data type doesn't have a length. MySQL is OK with this but PostgreSQL chokes. Can you please remove the length?

#1

IceCreamYou - August 14, 2009 - 04:09

I can't actually find any PostgreSQL docs that say this, but the MySQL docs seem to indicate that a length isn't required, so I'll go ahead with this when I get some time tomorrow. The original logic was based on a misunderstanding of the way the text data type uses space, so there's no reason not to change it. I suppose that also means the maximum character limit can be upped to 21,844...

#2

IceCreamYou - August 14, 2009 - 17:58
Status:active» fixed

#3

System Message - August 28, 2009 - 18:00
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.