|Subject||Re: [firebird-support] Stored Procedure Name : 32 chars max in Firebird 2.x ?|
> > I'm wondering whether the 32 characters limit on stored procedure namesThanks for the confirmation.
> > still exists in firebird 2.0...
> 31 characters really, yes, it still exists.
Any idea whether this limit will be upgraded soon ?
I suppose this won't be as easy as changing some type declarations and
recompiling.... I'd be soooo happy with 80 or even 64 chars.....:D How
do i file a feature request? Should i post to the devel list ?
> >The fb2 release notes has nothing to sayI agree with the 'pain' comment, but the current condition is rather
> > on the subject. This is not a big showstopper or anything, just that if
> > you have tons of stored procedures, creating a meaningful name in
> > 32chars is... um... painful :)
> > At some point i was even thinking of creating a translation table to
> > store 'short sp name' (ex: 'sp_0001', 'sp_0002', 'sp_0003', keep it
> > under 32chars ) vs 'full/real sp name' (ex:
> > 'sp_get_actual_payment_allocation_from_finance_department')
> > and devise a way to translate/resolve the names somehow during sp calls.
> Nooo, you shouldn't, IMO. Makes development a pain.
painful too, see below.
> Be creative :-)Thank you for the advice. That's sort of what we've been doing so far,
> At a company I worked for, we didn't use SP_001 etc, but what we did
> use for tables (Oracle has a similar limit of 30 chars for all object names)
> was a 4 character code for each table that made somewhat sense, but
> keep table names in full.
> PERSON = PRSN (and keep those in a diagram next to the normal
> table names)
and we keep bumping into the limit. Here's an example :
Total 29 chars, safe. But later on we have to extend this sp to
additional functionalities, like :
Whoopsie, cannot do this, let's redefine SALES_ORDER as SO, and CUSTOMER
as CUST. So we went back and change all the stored proc names (lots :D)
to be consistent, so now we have :
That last one is 28 characters, again, safe for now, until the client
asks for something else.
customer_id, begin_date, end_date)
Ouch, 37 chars :) And then we end up with unreadable, ridiculous names
After a while, going back and redefining stuffs are really painful :) I
might try removing all the underscores next, but it's kinda part of the
coding convention. The "sp_get" prefix is for differentiating between
different kinds of stored procs. we got "sp_get", "sp_list", "sp_ins",
"sp_del", "sp_upd", etc, etc.
PS: sorry for late follow up, city was flooded :)