Column Name with #

Discussion of open issues, suggestions and bugs regarding Entity Framework support in ADO.NET Data providers
Post Reply
rick.duarte
Posts: 35
Joined: Fri 23 Jan 2009 23:07
Location: Rio de Janeiro, Brazil

Column Name with #

Post by rick.duarte » Fri 26 Nov 2010 20:46

I'm trying to execute a query to a table that have columns with '#' on name but it don't return any value.

Here is the describe of the table:

Code: Select all

Column Name                    Null?    Type            
------------------------------ -------- ----------------
SESSIONID                      NOT NULL NUMBER
ENTRYID                        NOT NULL NUMBER
STATEMENT                      NOT NULL NUMBER
TIMESTAMP#                     NOT NULL DATE
USERID                                  VARCHAR2(30)
USERHOST                                VARCHAR2(128)
TERMINAL                                VARCHAR2(255)
ACTION#                        NOT NULL NUMBER
Here is the linq that I'm using:

Code: Select all

DateTime d1 = new DateTime(2010, 11, 1);
DateTime d2 = new DateTime(2008, 11, 2);

var ret = from log in ctxSiebel.AuditHistoricos
          where (log.Action == 101 || log.Action == 102)
          && log.Timestamp >= d1
          && log.Timestamp = :p__linq__0)) AND ("Extent1"."TIMESTAMP#" < :p__linq__1)
I created a test table with columns without the char '#' and everything works fine.
Do you have some workaround for this?

Best regards,

Henrique

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Mon 29 Nov 2010 14:45

I have sent you a test project (it works correctly with your table structure at my machine).
Unfortunately, I've got a delivery failure report.
Could you please provide us an e-mail address to send you the sample to?

rick.duarte
Posts: 35
Joined: Fri 23 Jan 2009 23:07
Location: Rio de Janeiro, Brazil

Post by rick.duarte » Mon 29 Nov 2010 15:13

I updated my profile.
Please, send a message to m.henrique at x2sistemas.com
Thanks!

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Mon 29 Nov 2010 15:22

I've sent the project to another address.

Post Reply