DataNucleus JIRA is now in read-only mode. Raise any new issues in GitHub against the plugin that it applies to. DataNucleus JIRA will remain for the foreseeable future but will eventually be discontinued
Issue Details (XML | Word | Printable)

Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Andy Jefferson
Reporter: Areg Beketovski
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.
DataNucleus Store RDBMS

ArrayIndexOutOfBoundsException in SQLTableAlphaNamer

Created: 20/Apr/10 01:53 PM   Updated: 26/Apr/10 03:39 PM   Resolved: 20/Apr/10 02:58 PM
Component/s: Queries
Affects Version/s: 2.0.3
Fix Version/s: 2.1.0.m2

File Attachments: 1. Text File (1 kB)

Forum Thread URL:,6050
Datastore: Microsoft SQL Server

 Description  « Hide
Whenever an object has more than 26 reference and collection fields this results in ArrayIndexOutOfBoundsException when generating the SQL statement using SQLTableAlphaNamer.

Areg Beketovski added a comment - 20/Apr/10 01:59 PM
Suggested patch to allow up to 676 table groups

Areg Beketovski made changes - 20/Apr/10 01:59 PM
Field Original Value New Value
Attachment [ 11145 ]
Andy Jefferson added a comment - 20/Apr/10 02:58 PM
Thx. Patch adapted in part (the name generation for AA, AB, etc) but current code also retained but with extension, so we now get names as
A0, B0, C0, ..., Z0, AA0, AB0, etc. 702 combinations, and names as small as possible for 99% of use-cases.

Andy Jefferson made changes - 20/Apr/10 02:58 PM
Status Open [ 1 ] Resolved [ 5 ]
Assignee Andy Jefferson [ andy ]
Fix Version/s 2.1.0.m2 [ 10912 ]
Resolution Fixed [ 1 ]
Andy Jefferson made changes - 26/Apr/10 03:39 PM
Status Resolved [ 5 ] Closed [ 6 ]