connecting to 3.2 valventina database with rev

Kirill Pekarov kirill_pekarov at valentina-db.com
Wed Aug 29 15:30:10 CDT 2007


Hi, Robert.

You wrote 29.08.2007, 22:34:30:

>     put revOpenDatabase("Valentina2","",theConnectionID,"","") into dbID

I don't see here any mistake. May be error before this string.

Please look our TestProject.rev. It is located in the Examples folder.
In the TestProject.rev in the card VDatabase present method:

function Test_V4REV_VDatabase_ToRevDb
  get TEST("Test_V4REV_VDatabase_ToRevDb")
  
  -- Prepare database
  get Test_V4REV_VDatabase_Prepare() 
  
  if gClient then 
    put revOpenDatabase("Valentina2","localhost",mDatabase,"sa","sa") into mDbID
  else
    put revOpenDatabase("Valentina2","",mDatabase,"","") into mDbID
  end if
  
  put RevDataFromQuery(,,mDbId, "SELECT b1 FROM T2 WHERE b1 = '111'") into res
  get DO_TEST_EQ( res, "111" )
   
  get CloseAndTrashTestDatabase()   
end Test_V4REV_VDatabase_ToRevDb

Please run tests.
If this work for you?


-- 
Best regards,

Kirill Pekarov
Software Engineer Associate
Paradigma Software, Inc
Valentina - The Ultra-Fast Database
http://www.valentina-db.com



More information about the Valentina mailing list