Re: Question about format_type function
От | Bruce Momjian |
---|---|
Тема | Re: Question about format_type function |
Дата | |
Msg-id | 200504090226.j392QDE22364@candle.pha.pa.us обсуждение исходный текст |
Ответ на | Re: Question about format_type function (Tony Caduto <tony_caduto@amsoftwaredesign.com>) |
Список | pgsql-general |
Tony Caduto wrote: > Would it not be possible to add another param to the function like I mentioned > and keep everyone happy? Users coming from MS SQL server look puzzled when > they see the huge Character Varying(n) in a admin tool. > > I have not programmed in C since 1993, but I know in pascal you can have a > parameter for a function be set as a const, that way it would remain > compatible with the current function, then some logic could be added to make > the long names be short? or even a overloaded function would be ok. > > I have got around this by using a case statment but it would be so nice if I > could just call that function and have the results look like what users see > in tools such as MS SQL servers enterprise manager. We don't have function overloading like that in C, so we would need a new function and have to keep the old one around too. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073
В списке pgsql-general по дате отправления: