Glorp colom renaming

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Glorp colom renaming

Maarten Mostert-2
Hi,
 
When I rename colums in Glorp wit the following code:
 
oldField := (aGlorpSession system allTables
      detect: [:each | each name = 'MMT_BINARYFILES']) fields
      detect: [:each | each name = 'binf_attachementdate'].
   aGlorpSession accessor
    renameField: oldField
    to: 'attachementdate'
    ifError: [].
 
It produces something like:
 
ALTER TABLE MMT_BINARYFILES RENAME binf_attachementdate TO attachementdate
 
This works fine in Postgres, but under Oracle it gives the following error (if executed through AdHoc).
 
ORA-14155: absence du mot-clé PARTITION ou SUBPARTITION
Regards,
 
@+Maarten,

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: Glorp colom renaming

Alan Knight-3
That's a bug. It ought to be rename column, not just rename.  Not the clearest error message, though.

At 11:21 PM 2010-02-08, Maarten MOSTERT wrote:
Hi,
 
When I rename colums in Glorp wit the following code:
 
oldField := (aGlorpSession system allTables
      detect: [:each | each name = 'MMT_BINARYFILES']) fields
      detect: [:each | each name = 'binf_attachementdate'].
   aGlorpSession accessor
    renameField: oldField
    to: 'attachementdate'
    ifError: [].
 
It produces something like:
 
ALTER TABLE MMT_BINARYFILES RENAME binf_attachementdate TO attachementdate
 
This works fine in Postgres, but under Oracle it gives the following error (if executed through AdHoc).
 
ORA-14155: absence du mot-clé PARTITION ou SUBPARTITION
Regards,
 
@+Maarten,

--
You received this message because you are subscribed to the Google Groups "glorp-group" group.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
For more options, visit this group at http://groups.google.com/group/glorp-group?hl=en.

--
Alan Knight [|], Engineering Manager, Cincom Smalltalk

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: Glorp colom renaming

Maarten Mostert-2
Yes Oracle speaks french or sort of.
In english it must be:
 
ORA-14155: missing PARTITION or SUBPARTITION keyword
----- Original Message -----
Sent: Wednesday, February 10, 2010 12:28 AM
Subject: Re: [vwnc] Glorp colom renaming

That's a bug. It ought to be rename column, not just rename.  Not the clearest error message, though.

At 11:21 PM 2010-02-08, Maarten MOSTERT wrote:
Hi,
 
When I rename colums in Glorp wit the following code:
 
oldField := (aGlorpSession system allTables
      detect: [:each | each name = 'MMT_BINARYFILES']) fields
      detect: [:each | each name = 'binf_attachementdate'].
   aGlorpSession accessor
    renameField: oldField
    to: 'attachementdate'
    ifError: [].
 
It produces something like:
 
ALTER TABLE MMT_BINARYFILES RENAME binf_attachementdate TO attachementdate
 
This works fine in Postgres, but under Oracle it gives the following error (if executed through AdHoc).
 
ORA-14155: absence du mot-clé PARTITION ou SUBPARTITION
Regards,
 
@+Maarten,

--
You received this message because you are subscribed to the Google Groups "glorp-group" group.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
For more options, visit this group at http://groups.google.com/group/glorp-group?hl=en.

--
Alan Knight [|], Engineering Manager, Cincom Smalltalk


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc