dbTalk Databases Forums  

[BUGS] BUG #1305: can't use the type 'number' with alter table

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] BUG #1305: can't use the type 'number' with alter table in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
PostgreSQL Bugs List
 
Posts: n/a

Default [BUGS] BUG #1305: can't use the type 'number' with alter table - 11-03-2004 , 12:29 PM







The following bug has been logged online:

Bug reference: 1305
Logged by: Károly Segesdi

Email address: jazzkutya (AT) wom (DOT) hu

PostgreSQL version: 7.4.5

Operating system: slackware 10.0

Description: can't use the type 'number' with alter table

Details:

somedb=# alter table sometbl add column msisdn number(11);
ERROR: syntax error at or near "(" at character 43

you can use the type identifier 'decimal' instead:
somedb=# alter table sometbl add column msisdn decimal(11);
ALTER TABLE

The documentation says theese two types are the same, but it's annoying that
you can't use the one that is mentioned more frequently in the docs.

postgresql version is 7.4.6, your bugreport form's version field misses this
version.



---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo (AT) postgresql (DOT) org so that your
message can get through to the mailing list cleanly

Reply With Quote
  #2  
Old   
Stephan Szabo
 
Posts: n/a

Default Re: [BUGS] BUG #1305: can't use the type 'number' with alter table - 11-03-2004 , 01:05 PM







On Wed, 3 Nov 2004, PostgreSQL Bugs List wrote:

Quote:
The following bug has been logged online:

Bug reference: 1305
Logged by: K=C3=A1roly Segesdi

Email address: jazzkutya (AT) wom (DOT) hu

PostgreSQL version: 7.4.5

Operating system: slackware 10.0

Description: can't use the type 'number' with alter table

Details:

somedb=3D# alter table sometbl add column msisdn number(11);
ERROR: syntax error at or near "(" at character 43

you can use the type identifier 'decimal' instead:
somedb=3D# alter table sometbl add column msisdn decimal(11);
ALTER TABLE

The documentation says theese two types are the same, but it's annoying t=
hat
you can't use the one that is mentioned more frequently in the docs.
I think the issue is that the type is numeric, not number. Where did you
see it refered to as number in the docs so we can fix it.

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo (AT) postgresql (DOT) org so that your
message can get through to the mailing list cleanly


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.