From: Bjorn B. <bri...@cs...> - 2005-02-05 20:34:29
|
Jeremy Shaw wrote: > Bjorn Bringert wrote: >>Santoemma Enrico wrote: >>>Btw, is it possible that the bug 'Repeated field names don't work' is >>>due to the fact that one cannot read the same field two times when >>>using ODBC? This is an old odbc error that I often (still) meet. In >>>haskell I strictly retrieve the record into memory before starting to >>>retrieve a field, and this fixes the error. >> >>The problem is that the extensible record type that we created for=20 >>HaskellDB does not disallow creating a record which contains two fields= =20 >>with the same label. HList, presented at Haskell Workshp 2004 has a=20 >>solution to this problem, see http://homepages.cwi.nl/~ralf/HList/paper= .pdf >=20 > Speaking of which, do you think that we should try to convert > haskelldb to something like the scheme presented in the Hlist paper? I > am not familiar enough with the internals of haskelldb yet to compare > the existing scheme to the one proposed in hlist... I know the HaskellDB version well, but I haven't studied HList well=20 enough to to be sure. I guess it would be ideal if we could use HList as=20 a library, but I don't know if this is feasible. /Bj=F6rn |