AW: getDatabaseCount() in Vserver Xtra V4MD not refreshed

Florian Bogeschdorfer fb at memedia.de
Thu Oct 2 22:08:18 CDT 2003


Hi Igor,

This is getting very weird. At the moment I can not even connect to it
though I changed nothing...
My password IS definitely right and why can I get some functions even though
the openSession() fails?
I restarted twice already and I can proof that it worked because I have
changed the password


Here is the stuff from my message window (D8.5.1/WinXPHome, Vserver a38,
Client Xtra a39 )


-- Welcome to Director --
v=new(xtra "Vserver","192,168.0.78","sa","6009")
put v
-- <Xtra child "VServer" 2 23f0e8>
put v.opensession()
-- -2147483647
v.closesession()
v=0

ValentinaInit( 32 * 1024 * 1024, "V4MD-XXXX-XXXX-XXXX",
"V4MD-XXXX-XXXX-XXXX" )

v=new(xtra "Vserver","192,168.0.78","sa","6009")
put v.opensession()
-- -2147483647
v.closesession()
v=0

VAL=new(xtra"VdataBase","192.168.0.78","sa","6009",15432,0)
put val
-- <Xtra child "VDataBase" 2 27b21ec>

v=new(xtra "Vserver","192,168.0.78","sa","6009")
put v
-- <Xtra child "VServer" 2 27b1918>
put v.openSession()
-- -2147483647
v=0

x=openDatabase(VAL,"me-inside")
put x
-- 1

v=new(xtra "Vserver","192,168.0.78","sa","6009")
put v
-- <Xtra child "VServer" 2 27b1b98>
put v.opensession()
-- -2147483647

-- Wrong password? No, how could I open the DB then and do this
put VAL.getBaseObjectCount()
-- 26

Maybe I am stupid but I can not explain this. I must make a huge error...

Best regards, Florian

/***************************************************************************
**********/
Thu Oct  2 2003 21:47:49.107000 Valentina Server (2.0a38, Protocol 1.1,
Kernel 1.9.8)

 21:47:49.147000 (2248): Valentina database engine inited
 21:47:49.157000 (2248): Server started at 15432 port
 21:54:09.334000 (2252): Connection established with 'NSX:3054' (352)
 21:54:10.055000 (2260): (352) Database: me-inside; User: sa: OK

> -----Ursprüngliche Nachricht-----
> Von: valentina-bounces at lists.macserve.net 
> [mailto:valentina-bounces at lists.macserve.net] Im Auftrag von 
> Igor Gomon
> Gesendet: Donnerstag, 2. Oktober 2003 20:20
> An: Valentina Developers
> Betreff: Re: getDatabaseCount() in Vserver Xtra V4MD not refreshed
> 
> Hi Florian,
> 
> > I open a session and count the databases with 
> getDatabaseCount() and I 
> > get
> 0
> > back (obviously the master.vdb is not counted)
> 'master' database must be counted, of course.
> I tried many times the code below and VServer never returned me 0.
> 
>     set gServer = new(xtra"VServer", "", "sa", "sa")
>     OpenSession(gServer)
>     set DbCol = GetDatabaseCount(gServer)
> 
> (Even when I stoped service, deleted all databases and then 
> started it again
> GetDatabaseCount(gServer) still returned me 1).
> Can you give us an example of code?
> 
> P.S. Please, don't forget to specify VServer & VClient 
> versions (although neither version of VServer should returns 0)
> 
> --
> Best regards,
> Igor Gomon
> -------------------------------------------------------------
> e-mail: giv_ua at inbox.ru
> web: http://www.paradigmasoft.com
> 
> To subscribe to the Valentina mail list go to:
> http://listserv.macserve.net/mailman/listinfo/valentina
> 
> _______________________________________________
> Valentina mailing list
> Valentina at lists.macserve.net
> http://lists.macserve.net/mailman/listinfo/valentina



More information about the Valentina mailing list