Issue 327 in dblinq2007: Crash during ExpressionDispatcher with nested query

1 view
Skip to first unread message

dblin...@googlecode.com

unread,
Feb 23, 2012, 12:22:27 AM2/23/12
to dblin...@googlegroups.com
Status: New
Owner: ----

New issue 327 by itsnatet...@gmail.com: Crash during ExpressionDispatcher
with nested query
http://code.google.com/p/dblinq2007/issues/detail?id=327

What steps will reproduce the problem?
[Table]
class WpPost
{
[Column]
public string PostName{get;set;}
}

public WpPost GetPostByUri(Uri uri)
{
if (uri == null)
throw new ArgumentNullException("uri");

using (var db = new WordPressDataContext(ConnectionName))
{
//uri = http://wasntnate.com/some/page-name/argument
var segments = uri.Segments.Select(s =>
s.TrimEnd('/')).ToArray();

var post = (from p in db.WpPosts
where (from s in segments
where s == p.PostName
select s).Count() > 1
select p).FirstOrDefault();

return post;
}
}

What is the expected output? What do you see instead?
Expression evaluation is able to succeed and query sent to MySql

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

Feel free to contact me if need more info:
http://wasntnate.com/2012/02/crashing-dblinq-with-embedded-query/

Please provide any additional information below.


Attachments:
dblinq-nestedQuery-stack.txt 10.9 KB

Reply all
Reply to author
Forward
0 new messages