temporary ram tables
Ivan Smahin
ivan_smahin at paradigmasoft.com
Tue Jul 20 12:06:26 CDT 2010
Hello jda,
Tuesday, July 20, 2010, 8:00:31 PM, you wrote:
>>Hello jda,
>>
>>Tuesday, July 20, 2010, 7:37:30 PM, you wrote:
>>
>>
>>> I'm trying to fill a RAM table with about 10 records. I'm populating
>>> the records the SQL way, e.g.
>>
>>> tempDB = new MyDatabase(EVStorageType.kRAM)
>>
>>> myCursor = new VCursor(tempDB, "select * from table1 where false",
>>> EVCursorLocation.kServerSide, EVLockType.kReadWrite) //make an empty
>>> cursor
>>
>>You got a RW cursor with no records.
>>
>>> myCursor.SetBlank
>>
>>> myCursor.Field("id").SetString("5")
>>> ...
>>
>>> i get an exception when I try this, though:
>>
>>> myCursor.updateRecord
>>
>>Why updaterecord? why not AddRecord?
>>There is no record in cursor yet - which one you are goinf to update?
>>
>>> Why? How can I create multiple records in a RAM table?
>>
>>Adding them - nothing special.
>>
> Hi Ivan,
> Yes, of course you're right. But I'm getting an exception on
> call myCursor.AddRecord
> too. The exception is
> 365829
> Do you know what that means?
ERR_OS_FILE_NOT_OPEN
SHOW VERRORS
--
Best regards,
Ivan Smahin
Senior Software Engineer
Paradigma Software, Inc
Valentina - The Ultra-Fast Database
http://www.valentina-db.com
More information about the Valentina
mailing list