From: Anders <ch...@dt...> - 2005-09-22 10:24:45
|
On Thu, 2005-09-22 at 08:17 +0200, Bjorn Bringert wrote: > > Hi > > > > I tried the tutorial on the haskell wiki [1] and used dbInfoToModuleF= iles > > to create the DB Layout. As described I named the Table 'MyTable' but= in > > the created file DBInfo.hs, the table was named 'myTable' (caused by = a > > call to 'checkLower' in DBSpecToDBDirect.hs). Obviously this did not = work > > with the Table that I created beforehand (with dbSpecToDatabase with = the > > original dbInfo as parameter). > > > > Is this behaviour on purpose? This would mean one could only use Tabl= e > > names that begin with lower case letters. > > > > As checkLower is also applied to Field names in DBSpecToDBDirect.hs I > > assume the same behaviour happens with Fields. > > > > [1] http://www.haskell.org/hawiki/HaskellDbTutorial >=20 > Hmm, I can't see any reason why the first letter of the table and field > names have to be lower case. Of course the Haskell identifiers for the > tables and fields have to, but not the strings with the actual field > names. >=20 > I have removed these calls to checkLower in CVS for now, can anyone she= d > any light on why they were there in the first place? Chucky: maybe you > remember? >=20 > /Bj=C3=B6rn Hmm, I am *guessing* I wanted to be consistent, so that the Haskell identifiers would always have the same name as the actual tables and fields. OTOH, it might just be a bug. :) /Chucky |