Issue 325 in dblinq2007: The binary operator GreaterThan is not defined for the types 'System.Int32' and 'System.Int64'.

22 views
Skip to first unread message

dblin...@googlecode.com

unread,
Feb 19, 2012, 4:44:50 AM2/19/12
to dblin...@googlegroups.com
Status: New
Owner: ----

New issue 325 by itsnatet...@gmail.com: The binary operator GreaterThan is
not defined for the types 'System.Int32' and 'System.Int64'.
http://code.google.com/p/dblinq2007/issues/detail?id=325

What steps will reproduce the problem?
1. Create table with column named 'Count' of type 'Int64'
2. Use it in any part of the query

Example
[Table]
class Foo
{
[Column]
public string Bar;
[Column]
public long Count;
}

var count = (from f in db.Foo
where f.Bar == "Fred"
&& f.Count > Convert.ToInt64(0L)
select f).FirstOrDefault();


What is the expected output? What do you see instead?

If used in where predicate:
The binary operator GreaterThan is not defined for the
types 'System.Int32' and 'System.Int64'.
(see dblinq-stack.txt)

What version of the product are you using? On what operating system?
DbLinq: 0.20.0.0

Attachments:
dblinq-stack.txt 7.8 KB

dblin...@googlecode.com

unread,
Feb 19, 2012, 4:48:51 AM2/19/12
to dblin...@googlegroups.com

Comment #1 on issue 325 by itsnatet...@gmail.com: The binary operator
GreaterThan is not defined for the types 'System.Int32' and 'System.Int64'.
http://code.google.com/p/dblinq2007/issues/detail?id=325

Incase it matters:
MySql.Data 6.4.4.0
NET v4.0.30319

dblin...@googlecode.com

unread,
Aug 31, 2012, 4:44:38 AM8/31/12
to dblin...@googlegroups.com

Comment #2 on issue 325 by juan_lip...@msn.com: The binary operator
GreaterThan is not defined for the types 'System.Int32' and 'System.Int64'.
http://code.google.com/p/dblinq2007/issues/detail?id=325

pudiste resolverlo?

dblin...@googlecode.com

unread,
Oct 22, 2012, 7:00:59 PM10/22/12
to dblin...@googlegroups.com

Comment #3 on issue 325 by itsnatet...@gmail.com: The binary operator
GreaterThan is not defined for the types 'System.Int32' and 'System.Int64'.
http://code.google.com/p/dblinq2007/issues/detail?id=325

Nope, here is the most direct repro code..

from x in db.Table
where ((int)x.Number) == (long)number
select x;

Reply all
Reply to author
Forward
0 new messages