Bug or future?

Bug or future?

Postby darkman.cv » Thu 05 Oct 2006 12:29

//DbProfileProvider
//v. 2.51
public override ProfileInfoCollection FindProfilesByUserName(ProfileAuthenticationOption authenticationOption, string usernameToMatch, int pageIndex, int pageSize, out int totalRecords)

...
string text1 = "SELECT u.username, u.lastactivitydate, p.lastupdateddate FROM aspnet_profiles p, aspnet_users u WHERE p.userid = u.userid AND u.applicationname = :applicationname AND u.username LIKE :username ";

...
IDataReader reader1 = command1.ExecuteReader();
collection1 = new ProfileInfoCollection();
while (reader1.Read())
{
string text2 = (string) reader1.GetValue(0);
DateTime time1 = (DateTime) reader1.GetValue(1);
DateTime time2 = (DateTime) reader1.GetValue(1);
collection1.Add(new ProfileInfo(text2, false, time1, time2, -1));
}
reader1.Close();
---
DateTime time1 = (DateTime) reader1.GetValue(1);
DateTime time2 = (DateTime) reader1.GetValue(1);

Why use twice last activity date?
darkman.cv
 
Posts: 5
Joined: Mon 25 Sep 2006 01:38

Postby Alexey » Fri 06 Oct 2006 06:42

Please specify what exactly you need or what is the problem. Where is this code snippet from?
Last edited by Alexey on Mon 09 Oct 2006 07:32, edited 1 time in total.
Alexey
 
Posts: 2756
Joined: Mon 13 Mar 2006 07:43

Code

Postby darkman.cv » Sat 07 Oct 2006 03:17

namespace CoreLab.PostgreSql.Web.Providers
class DbProfileProvider
function FindProfilesByUserName
darkman.cv
 
Posts: 5
Joined: Mon 25 Sep 2006 01:38

Postby Alexey » Mon 09 Oct 2006 08:02

Yes, it is a bug. We will fix it. Look forward to the next build.
Alexey
 
Posts: 2756
Joined: Mon 13 Mar 2006 07:43

Postby Alexey » Tue 28 Nov 2006 08:57

New build is available for download now.
Alexey
 
Posts: 2756
Joined: Mon 13 Mar 2006 07:43


Return to dotConnect for PostgreSQL