X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id CCB303A45F4 for ; Wed, 3 Nov 2004 19:23:41 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 58712-10 for ; Wed, 3 Nov 2004 19:23:29 +0000 (GMT) Received: from web60708.mail.yahoo.com (web60708.mail.yahoo.com [216.109.117.231]) by svr1.postgresql.org (Postfix) with SMTP id 45E3B3A44F6 for ; Wed, 3 Nov 2004 19:23:29 +0000 (GMT) Message-ID: <20041103192328.96816.qmail@web60708.mail.yahoo.com> Received: from [200.184.102.212] by web60708.mail.yahoo.com via HTTP; Wed, 03 Nov 2004 16:23:28 ART Date: Wed, 3 Nov 2004 16:23:28 -0300 (ART) From: "Francisco Figueiredo Jr." Subject: Re: Guid and Npgsql C# To: Aleksandar Dezelin , "pgsql-interfaces@postgresql.org" In-Reply-To: <4188F876.80603@fastmail.fm> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.1 tagged_above=0.0 required=5.0 tests=MAILTO_TO_SPAM_ADDR X-Spam-Level: * X-Archive-Number: 200411/3 X-Sequence-Number: 5129 --- Aleksandar Dezelin escreveu: > Does anybody knows how C# Guids are interpreted in Npgsql assembly? > I want to convert existing C# .NET application which uses MS SQL 2000 > database to Mono and PostgreSQL but I don't know how to deal with all > Guid fields that it's using. I've found a patch that adds > uniqueidentifier support to PostgreSQL but I'm not sure how to use it > from C# and Mono. > Hi Aleksandar. Unfortunately, Npgsql doesn't support Guid datatypes. You could try using it as string inside your database and use the NpgsqlDbTypes.Text as the datatype. Could you provide me a link to this uniqueidentifier patch? I could help you add this specific type to a custom Npgsql assembly. Regards, Francisco Figueiredo Jr. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com