Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Java imap server

843830Oct 11 2006 — edited Oct 11 2006
Im designing my final year project which will be a java imap email client and server. I just wondering if anyone has any good tips or documents which outline design patterns for writing mail servers in java. Any help would be much appreciated

Thanks
Gerard

Comments

Alex Keh-Oracle

It could be a bug. Do you have test case to help us better understand the problem with TimeOfDay that you experience?

mariohik

Sorry for the delay.
I can't use TimeOfDay as in the example below:

var ts1 = new TimeSpan(6, 10, 0);
var ts2 = new TimeSpan(6, 50, 0);


var x = from t in TestTable
where t.DtColumn.Value.TimeOfDay >= ts1
&& t.DtColumn.Value.TimeOfDay <= ts2
select t;


x.Dump();

Instead, I have to run the query separately (hours and minutes):

from t in TestTable
where (t.DtColumn.Value.Hour >= 6 && t.DtColumn.Value.Minute >= 10 )
&& (t.DtColumn.Value.Hour <= 6 && t.DtColumn.Value.Minute <= 50 )
select t

I am attaching a sample table and you can use LinqPad to test the query.
export.txt (130.51 KB)

Alex Keh-Oracle

Thanks for reporting. I filed bug 32388939 to track this issue. We'll take a look at it.

Alex Keh-Oracle
Answer

This bug was fixed, but missed making it into the first Oracle EF Core 5 release. The fix will be part of the next Oracle EF Core 5 release.

Marked as Answer by mariohik · Feb 12 2021
mariohik

Thank you!

1 - 5
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Nov 8 2006
Added on Oct 11 2006
1 comment
164 views