The fact that the 31-character limit on ClientDataSet field and index names is worse, but I just encountered this GetParamNameWODog
function in a Delphi 3rd party library:
What’s wrong with using the Length function here?
Yes, SQL Parameter names will probably less than 1000 characters, but then the 1000
literal should be a constant with a meaningful name, and the '@'
literal should be too.
Apparently, Dog is a meaningful name for the at-sign, as it is not the name for a SQL parameter prefix, but it is not a named const either in the rest of their code:
–jeroen
Filed under: Delphi, Delphi XE3, Development, Software Development Tagged: index names, Length function, meaningful name
![](http://stats.wordpress.com/b.gif?host=wiert.me&blog=7443331&post=18546&subd=wiert&ref=&feed=1)