calling isc_database_info with a resquest for isc_info_user_names does not 
return all connected users anymore?
--------------------------------------------------------------------------------------------------------------

                 Key: CORE-3471
                 URL: http://tracker.firebirdsql.org/browse/CORE-3471
             Project: Firebird Core
          Issue Type: Bug
          Components: API / Client Library
    Affects Versions: 2.5.0
         Environment: Win XP SP3
            Reporter: HaeRim Lee


I downloaded ibpp from www.ibpp.org and compiled the tests project using VC6.
When running it from debug mode, Test1-Test5 was ok.
However Test6() raisied the following exception:
 
>From Test6(),
 
 // Connecting two users
 db1 = IBPP::DatabaseFactory(ServerName, DbName, "EPOCMAN", "test");
 db1->Connect();
 IBPP::Database db2 = IBPP::DatabaseFactory(ServerName, DbName, UserName, 
Password);
 db2->Connect();
 // Checking their names
 std::vector<std::string> usernames;
 db1->Users(usernames);
 if (usernames.size() != 2)
 {
  _Success = false;
  printf(_("           Expected 2 users connected, found %d.\n"), 
(int)usernames.size());
 }
 printf("           Connected users : ");
 for (unsigned int i = 0; i < usernames.size(); i++)
 {
  printf("%s", usernames[i].c_str());
  if (i < usernames.size()-1) printf(", ");
 }
 printf("\n");

The above code seems to expect to get two users, but
usernames.size() returned 1, not 2 and.
Is this normal?
I haven't changed anything from the tests project at all.

Olivier Mascia from ibpp said:

FB2.5 changed a lot of semantic details about user management and reporting. 
The old reporting method (calling isc_database_info with a resquest for 
isc_info_user_names) might not return all connected users anymore, might return 
them all except the current one running the query, or might have a minor bug - 
compared to previous FB versions).

Please confirm if FB2.5 changed that way compared to previous FB versions.


thx
HaeRim


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to