From sunshine at public.kherson.ua Thu Jan 1 11:26:09 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jan 1 03:26:03 2004 Subject: [V4Rb] Aggregate field question In-Reply-To: <0BD89E67-3BC6-11D8-9510-003065BB0634@desuetude.com> Message-ID: on 12/31/03 9:17 PM, Charles Yeomans at yeomans@desuetude.com wrote: > Suppose I have a UShort field "amount" for which I want to compute a > sum, as in > > "SELECT SUM(amount) FROM TheTable". > > It appears that the type of the field returned by the cursor may not be > of type UShort. Is there some rule as to what to expect? Hi Charles, Always uchar, ushort, ulong, ullong -> ULLONG short, long, llong -> LLLONG float, double -> DOUBLE -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Thu Jan 1 18:44:59 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jan 1 10:44:53 2004 Subject: [VSRV] new license files uploaded. Message-ID: Hi All, a new license files uploaded for January. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From andy at foxwerk.de Thu Jan 1 18:23:13 2004 From: andy at foxwerk.de (Andy Fuchs) Date: Thu Jan 1 11:22:47 2004 Subject: Happy New Year to Everybody!!! :-) In-Reply-To: Message-ID: I second this wholeheartedly! @Totte: What is TP? andy From Fred.Stephenson at communication-unltd.com Thu Jan 1 22:24:41 2004 From: Fred.Stephenson at communication-unltd.com (Fred.Stephenson) Date: Thu Jan 1 15:22:40 2004 Subject: Happy New Year to Everybody!!! :-) In-Reply-To: References: Message-ID: >I second this wholeheartedly! > Happy New Year, Bonne ann?e and I assume y'all had a guten rutsch ;?) >@Totte: What is TP? Probably Trivial Pursuit Fred > >andy > >_______________________________________________ >Valentina mailing list >Valentina@lists.macserve.net >http://lists.macserve.net/mailman/listinfo/valentina From sunshine at public.kherson.ua Thu Jan 1 23:40:17 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jan 1 15:40:14 2004 Subject: [ANN] Vserver a55 mac/win uploaded Message-ID: Hi Ken, Uploaded a55 build. * FIXED problem with date BaseObject methods. * also we have add into cursors (on C++ level) functions EOF, BOF which we need for VPHP_Client. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From aclemens at xs4all.nl Fri Jan 2 11:38:23 2004 From: aclemens at xs4all.nl (Arthur Clemens) Date: Fri Jan 2 04:38:29 2004 Subject: [VSDK] MakeSearch and regex Message-ID: Hi Ruslan In the manual I read: To make case insensitive RegEx search you can specify switch (-i) in the match string: ?==(?i)I AM CASE INSENSITIVE(?-I)I am Case Sensitive? Is this correct? With parentheses and question marks? So if I am looking for words with either 'AA' or 'Aa' or 'aa' I should use: ==(?i)aa(?-I) but I can't get it to work like this. I get zero results each time. Arthur Clemens From sunshine at public.kherson.ua Fri Jan 2 12:42:37 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jan 2 04:42:31 2004 Subject: [VSDK] MakeSearch and regex In-Reply-To: Message-ID: on 1/2/04 12:38 PM, Arthur Clemens at aclemens@xs4all.nl wrote: > Hi Ruslan > > In the manual I read: > > To make case insensitive RegEx search you can specify switch (-i) in > the match string: ?==(?i)I AM CASE INSENSITIVE(?-I)I am Case Sensitive? > > Is this correct? With parentheses and question marks? > So if I am looking for words with either 'AA' or 'Aa' or 'aa' I should > use: > ==(?i)aa(?-I) > > but I can't get it to work like this. I get zero results each time. Hi Arthur, You can look into FAQ also. There are good examples there. You use SQL or low level API? With SQL you can also do WHERE fld LIKE 'Aa' no_case -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From aclemens at xs4all.nl Fri Jan 2 11:53:04 2004 From: aclemens at xs4all.nl (Arthur Clemens) Date: Fri Jan 2 04:53:02 2004 Subject: [VSDK] MakeSearch and regex In-Reply-To: References: Message-ID: On Jan 2, 2004, at 11:42, Ruslan Zasukhin wrote: > on 1/2/04 12:38 PM, Arthur Clemens at aclemens@xs4all.nl wrote: > >> Hi Ruslan >> >> In the manual I read: >> >> To make case insensitive RegEx search you can specify switch (-i) in >> the match string: ?==(?i)I AM CASE INSENSITIVE(?-I)I am Case >> Sensitive? >> >> Is this correct? With parentheses and question marks? >> So if I am looking for words with either 'AA' or 'Aa' or 'aa' I should >> use: >> ==(?i)aa(?-I) >> >> but I can't get it to work like this. I get zero results each time. > > Hi Arthur, > > You can look into FAQ also. > There are good examples there. OK, I see I have to use single quotes, like =='(?i)aa' It works now. Note that the quotes are not in the manual (VSDK Reference p. 27). > > You use SQL or low level API? > > With SQL you can also do WHERE fld LIKE 'Aa' no_case Yes, that is simple to use. Arthur From jda at his.com Fri Jan 2 12:41:08 2004 From: jda at his.com (jda) Date: Fri Jan 2 11:41:16 2004 Subject: kNoLocks and default behavior In-Reply-To: References: Message-ID: Hi Ruslan, I thought if you used kNoLocks then cursors behaved as before (in 1.9.7 and earlier). But I just found a case where this was not correct -- I couldn't move back through the cursor unless I specified kRandom when the cursor was created. Is this the intended behavior? If so, personally I think it should default to kRandom, because that was the behavior of earlier versions. Jon From lists at mostrom.pp.se Fri Jan 2 18:49:36 2004 From: lists at mostrom.pp.se (Jan Erik =?iso-8859-1?Q?Mostr=F6m?=) Date: Fri Jan 2 11:49:42 2004 Subject: Probably a VERY stupid question but ... Message-ID: I downloaded Valentina for RB 5 but when I unstuffed the archive (Valentina_RB_5.zip) I can't find the plugin. I then downloaded the other version (Valentina_RB) where I can find the plugin but if I understand the web site corectly this only works for RB < 5 ... so where do I find the Valentina plugin for RB 5? (Mac) jem -- Jan Erik Mostr?m jem@mostrom.pp.se www.mostrom.pp.se From lbutler at on.pelmorex.com Fri Jan 2 12:59:21 2004 From: lbutler at on.pelmorex.com (Lloyd Butler) Date: Fri Jan 2 11:59:27 2004 Subject: [Vapp] Access properties using Perls Mac::Glue Message-ID: I am trying to make use of Vapp via Perl by using Applescript via Mac::Glue under OS X. I have the dictionary, and a simple working script, but I want to expand it a bit, and I have hit a wall. I want to replicate this routine to get the field names of the cursor: tell application "Valentina Carbon" set theDB to open file (thePath & theDatabase) tell theDB set theCursor to SQL Select theCommand end tell set fieldCount to count of field of record 1 of theCursor set fieldNames to "" repeat with x from 1 to fieldCount set fieldNames to fieldNames & (name of field x of record 1 of theCursor) & "|" end repeat end tell in Perl and this is what I have so far: # Let's create a database object to work with $valObj = Mac::Glue->new('Valentina_Carbon') ; $dbPath = $thePath.$theDatabase ; $theDB = $valObj->obj(file => "$dbPath") ; $theDB = $valObj->open($theDB) ; if (! $theDB) { return "Failed to open $dbPath : $MacError" ; } else { $theCursor = $valObj->sql($theDB,select=>$theCommand) ; $fieldCount = $valObj->count($theCursor,each=>"field") ; for ($x=1; $x <= $fieldCount; $x++) { #### ## STUCK HERE IN GETTING THE FIELD NAMES FROM THE CURSOR #### } } I have routines to query the data base and pull data out working just fine, now I want to start to pull a few more properties from the cursor to help format the data a bit. In my Applescript routine I have a flag that allows me to cal the routine and get the data returned as an html table with the field names at the top of the table, as list of lists with the field names as the first element in the list, or have the calling script define the format of the returned results. I want to try and replicate the same thing in Perl so that I can get my web pages running under Apache again. Any ideas would be appreciated. Lloyd Butler From sunshine at public.kherson.ua Fri Jan 2 20:23:44 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jan 2 12:23:37 2004 Subject: Probably a VERY stupid question but ... In-Reply-To: Message-ID: on 1/2/04 7:49 PM, Jan Erik Mostr?m at lists@mostrom.pp.se wrote: Hi Jan, > I downloaded Valentina for RB 5 but when I unstuffed the archive > (Valentina_RB_5.zip) I can't find the plugin. I then downloaded the > other version (Valentina_RB) where I can find the plugin but if I > understand the web site corectly this only works for RB < 5 It works with RB 5 also. > ... so where > do I find the Valentina plugin for RB 5? (Mac) Valentina_RB is right archive then. Valentina_RB_5.zip on my side have size 668 KB, After unpack I see 3 files including V4RB_Client.rbx -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Fri Jan 2 20:27:37 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jan 2 12:27:31 2004 Subject: kNoLocks and default behavior In-Reply-To: Message-ID: on 1/2/04 7:41 PM, jda at jda@his.com wrote: Hi Jon, > I thought if you used kNoLocks then cursors behaved as before (in > 1.9.7 and earlier). But I just found a case where this was not > correct -- I couldn't move back through the cursor unless I specified > kRandom when the cursor was created. Yes, you must also to use Random! Otherwise it is ForwardOnly. > Is this the intended behavior? Yes. > If so, personally I think it should > default to kRandom, because that was the behavior of earlier versions. Once again, I have choose default behavior in the first turn NOT to be compatible with Prev version, but to be the most effective from client/server point of view. I think this is more important, because we will use that for years. And switch from old version to new take few months. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From lists at mostrom.pp.se Fri Jan 2 19:42:28 2004 From: lists at mostrom.pp.se (Jan Erik =?iso-8859-1?Q?Mostr=F6m?=) Date: Fri Jan 2 12:42:33 2004 Subject: Probably a VERY stupid question but ... In-Reply-To: Message-ID: On 04-01-02 19:23, Ruslan Zasukhin wrote: > Valentina_RB is right archive then. OK > Valentina_RB_5.zip on my side have size 668 KB, > After unpack I see 3 files including V4RB_Client.rbx This is how that archive looked when I unstuffed it (it was 2.9 MB!!) NNpc83: Valentina_RB_5: Download Docs: Read me Examples: (1) Single Table: Single Table (2) Pictures: 376020.pct 376048.pct 376071.pct Pictures (3) Two Tables: Two Tables (3b) Two Tables, RDB-link: Two Tables, RDB-link (4) Three Tables: Three Tables (5,6) Examples of dynamic db: (5) Access by Name: Access by Name (6) Access by Index: Access by Index (7) Methods of BaseObject: Methods of BaseObject (8) Upgrade of schema: Single Table (new ver) (9) Fixed: Var Binary: Single Table TEST: 376020.pct 376048.pct 376071.pct _TESTs RegEx syntax: alternation.html anchors.html classes.html constants.html groups.html index.html quantifiers.html ReleaseNotes.pdf Third party projects: (1) Single Table + DataGrid: DataGrid.rbx Single Table Browser example: Browser example Icon Resources CLongScrollbar Icon Print DbStructure: -- Jan Erik Mostr?m jem@mostrom.pp.se www.mostrom.pp.se From sunshine at public.kherson.ua Fri Jan 2 20:57:01 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jan 2 12:56:57 2004 Subject: [ANN][NEW] VPHP Client for MacOS X uploaded Message-ID: Hi Jochen, Hi All, 1) We have made the FIRST build of VPHP_Client for OS X. 2) For Windows also everything works, just later. 3) again, VPHP product (as well as JDBC later) will exists ONLY as Client product, and require Valentina Server. 4) We have found that in 10.3 Apple have fix missing dlopen() system function! This give us ability know make MacOS VPHP as easy as for Windows. We distribute already compiled VPHP_Client.dylib, which you need just drag and drop into correct folder. In the past, we was need provide make file and sources to build on computer of client. Now this step can be skipped. Of course, we still will polish this version of VPHP. But the main parts work. P.S. also was added new page to web-site http://paradigmasoft.com/product/vsrv.html which describe server. if somebody will find bad English, please let me know. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Fri Jan 2 20:59:56 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jan 2 12:59:50 2004 Subject: Probably a VERY stupid question but ... In-Reply-To: Message-ID: on 1/2/04 8:42 PM, Jan Erik Mostr?m at lists@mostrom.pp.se wrote: > On 04-01-02 19:23, Ruslan Zasukhin wrote: > >> Valentina_RB is right archive then. > > OK > > >> Valentina_RB_5.zip on my side have size 668 KB, >> After unpack I see 3 files including V4RB_Client.rbx > > This is how that archive looked when I unstuffed it (it was 2.9 MB!!) Strange, it seems already there was report about such problem. It seems was found that this is bug in archivator. I do not remember which, my StuffIt, or your WinZip ... -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Fri Jan 2 21:05:32 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jan 2 13:05:27 2004 Subject: Probably a VERY stupid question but ... In-Reply-To: Message-ID: on 1/2/04 8:42 PM, Jan Erik Mostr?m at lists@mostrom.pp.se wrote: > On 04-01-02 19:23, Ruslan Zasukhin wrote: > >> Valentina_RB is right archive then. > > OK > > >> Valentina_RB_5.zip on my side have size 668 KB, >> After unpack I see 3 files including V4RB_Client.rbx > > This is how that archive looked when I unstuffed it (it was 2.9 MB!!) Erik, I have move archive to my WIN XP, Extract it using WinZip. All works fine. I see plugin V4RB.rbx here -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From cm_sheffield at yahoo.com Fri Jan 2 13:17:33 2004 From: cm_sheffield at yahoo.com (Chris Sheffield) Date: Fri Jan 2 15:17:36 2004 Subject: error 363 won't go away Message-ID: <20040102211733.18364.qmail@web20422.mail.yahoo.com> I've seen other posts about this error, but none of them contained information that helped me. I keep getting error 363 when running certain queries on my database. I'm using VXCMD with Revolution. What's strange is that I'm running one query when my stack opens, and that one works fine. I have a tab control that loads data into a field depending on the tab that's clicked. So when a tab is clicked, a query is run. As I said, the first query runs fine. When I click a new tab, I get error 363, or sometimes Revolution crashes. I've run my queries using both Valentina Studio and ViSQL, and they work fine. Is there anything else I can try? Could it be a bug with the VXCMD? I've tried on all platforms (OS 9, OS X, and Windows) with the same results on each. I've tried with different locking options, but nothing has made a difference. My database is on a stand-alone machine. Any help would be appreciated. Chris Sheffield Read Naturally __________________________________ Do you Yahoo!? Find out what made the Top Yahoo! Searches of 2003 http://search.yahoo.com/top2003 From fb at memedia.de Fri Jan 2 22:41:27 2004 From: fb at memedia.de (Florian Bogeschdorfer) Date: Fri Jan 2 15:41:30 2004 Subject: AW: error 363 won't go away In-Reply-To: <20040102211733.18364.qmail@web20422.mail.yahoo.com> Message-ID: I think I had 363 when building a cursor from more than one table and trying to write to it. You can not write to a cursor combining tables. It also looked like the first query had worked and the second did not that but infact the error from the first query was not reported until the second query. Does this help? Best regards, Florian > -----Urspr?ngliche Nachricht----- > Von: valentina-bounces@lists.macserve.net > [mailto:valentina-bounces@lists.macserve.net] Im Auftrag von > Chris Sheffield > Gesendet: Freitag, 2. Januar 2004 22:18 > An: valentina@lists.macserve.net > Betreff: error 363 won't go away > > I've seen other posts about this error, but none of them > contained information that helped me. I keep getting error > 363 when running certain queries on my database. I'm using > VXCMD with Revolution. > > What's strange is that I'm running one query when my stack > opens, and that one works fine. I have a tab control that > loads data into a field depending on the tab that's clicked. > So when a tab is clicked, a query is run. As I said, the > first query runs fine. When I click a new tab, I get error > 363, or sometimes Revolution crashes. I've run my queries > using both Valentina Studio and ViSQL, and they work fine. > > Is there anything else I can try? Could it be a bug with the > VXCMD? I've tried on all platforms (OS 9, OS X, and Windows) > with the same results on each. I've tried with different > locking options, but nothing has made a difference. My > database is on a stand-alone machine. > > Any help would be appreciated. > > > Chris Sheffield > Read Naturally > > > > __________________________________ > Do you Yahoo!? > Find out what made the Top Yahoo! Searches of 2003 > http://search.yahoo.com/top2003 > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina From cm_sheffield at yahoo.com Fri Jan 2 14:29:07 2004 From: cm_sheffield at yahoo.com (Chris Sheffield) Date: Fri Jan 2 16:29:09 2004 Subject: AW: error 363 won't go away In-Reply-To: Message-ID: <20040102222907.32564.qmail@web20422.mail.yahoo.com> Thanks for the reply. Unfortunately I'm not trying to write at all. I'm trying to get a read-only cursor, and that is what's giving me the 363 error. Any other ideas? Chris Sheffield --- Florian Bogeschdorfer wrote: > I think I had 363 when building a cursor from more > than one table and trying > to write to it. You can not write to a cursor > combining tables. It also > looked like the first query had worked and the > second did not that but > infact the error from the first query was not > reported until the second > query. Does this help? > > Best regards, Florian > > > -----Ursprüngliche Nachricht----- > > Von: valentina-bounces@lists.macserve.net > > [mailto:valentina-bounces@lists.macserve.net] Im > Auftrag von > > Chris Sheffield > > Gesendet: Freitag, 2. Januar 2004 22:18 > > An: valentina@lists.macserve.net > > Betreff: error 363 won't go away > > > > I've seen other posts about this error, but none > of them > > contained information that helped me. I keep > getting error > > 363 when running certain queries on my database. > I'm using > > VXCMD with Revolution. > > > > What's strange is that I'm running one query when > my stack > > opens, and that one works fine. I have a tab > control that > > loads data into a field depending on the tab > that's clicked. > > So when a tab is clicked, a query is run. As I > said, the > > first query runs fine. When I click a new tab, I > get error > > 363, or sometimes Revolution crashes. I've run my > queries > > using both Valentina Studio and ViSQL, and they > work fine. > > > > Is there anything else I can try? Could it be a > bug with the > > VXCMD? I've tried on all platforms (OS 9, OS X, > and Windows) > > with the same results on each. I've tried with > different > > locking options, but nothing has made a > difference. My > > database is on a stand-alone machine. > > > > Any help would be appreciated. > > > > > > Chris Sheffield > > Read Naturally > > > > > > > > __________________________________ > > Do you Yahoo!? > > Find out what made the Top Yahoo! Searches of 2003 > > http://search.yahoo.com/top2003 > > _______________________________________________ > > Valentina mailing list > > Valentina@lists.macserve.net > > > http://lists.macserve.net/mailman/listinfo/valentina > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina __________________________________ Do you Yahoo!? Find out what made the Top Yahoo! Searches of 2003 http://search.yahoo.com/top2003 From fb at memedia.de Fri Jan 2 23:42:40 2004 From: fb at memedia.de (Florian Bogeschdorfer) Date: Fri Jan 2 16:42:42 2004 Subject: AW: AW: error 363 won't go away In-Reply-To: <20040102222907.32564.qmail@web20422.mail.yahoo.com> Message-ID: > -----Urspr?ngliche Nachricht----- > Von: valentina-bounces@lists.macserve.net > [mailto:valentina-bounces@lists.macserve.net] Im Auftrag von > Chris Sheffield > Gesendet: Freitag, 2. Januar 2004 23:29 > An: Valentina Developers > Betreff: Re: AW: error 363 won't go away > > Thanks for the reply. Unfortunately I'm not trying to write > at all. I'm trying to get a read-only cursor, and that is > what's giving me the 363 error. Any other ideas? > Have you tried with noLock? Florian From cm_sheffield at yahoo.com Fri Jan 2 15:04:37 2004 From: cm_sheffield at yahoo.com (Chris Sheffield) Date: Fri Jan 2 17:04:41 2004 Subject: AW: AW: error 363 won't go away In-Reply-To: Message-ID: <20040102230437.39622.qmail@web20420.mail.yahoo.com> Yes, I have. Same result. --- Florian Bogeschdorfer wrote: > > > > -----Ursprüngliche Nachricht----- > > Von: valentina-bounces@lists.macserve.net > > [mailto:valentina-bounces@lists.macserve.net] Im > Auftrag von > > Chris Sheffield > > Gesendet: Freitag, 2. Januar 2004 23:29 > > An: Valentina Developers > > Betreff: Re: AW: error 363 won't go away > > > > Thanks for the reply. Unfortunately I'm not > trying to write > > at all. I'm trying to get a read-only cursor, and > that is > > what's giving me the 363 error. Any other ideas? > > > Have you tried with noLock? > > Florian > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina ===== Chris Sheffield Read Naturally www.readnaturally.com __________________________________ Do you Yahoo!? Find out what made the Top Yahoo! Searches of 2003 http://search.yahoo.com/top2003 From sunshine at public.kherson.ua Sat Jan 3 01:16:17 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jan 2 17:16:11 2004 Subject: AW: error 363 won't go away In-Reply-To: <20040102222907.32564.qmail@web20422.mail.yahoo.com> Message-ID: on 1/3/04 12:29 AM, Chris Sheffield at cm_sheffield@yahoo.com wrote: > Thanks for the reply. Unfortunately I'm not trying to > write at all. I'm trying to get a read-only cursor, > and that is what's giving me the 363 error. Any other > ideas? Hi Chris, 1) does your cursor select one table or do some JOINS? may be OUTER JOIN ? 2) IF you work with single table in cursor, and get 363 error, this means that EXISTS OTHER cursor which lock some records which you try to lock again. Then you must check your cursors. When and how you create and kill them. 3) IF you get 363 when try create READ ONLY cursor, this means that OTHER cursor have set WRITE lock. 4) do you work with 1.10 release ? if no, then please upgrade. in 1.9.8 there was few bugs to OUTER JOIN record locks. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From timdavis at amug.org Sat Jan 3 13:03:50 2004 From: timdavis at amug.org (Tim Davis) Date: Sat Jan 3 14:03:57 2004 Subject: Table record count errors Message-ID: Hi, I have record insert code that succeeds 99% of the time, but occasionally I get a server crash and a diagnostic error dealing with the record count. When this occurs, it can take a very long time to rebuild the db from XML dump. How can these errors be avoided? Could a self-repair routine be built into the server to fix such record building anomalies? (!) Table has 208270 physical records but field has 208269 Thanks, Tim Davis V4RB, VSRV From timdavis at amug.org Sat Jan 3 14:26:08 2004 From: timdavis at amug.org (Tim Davis) Date: Sat Jan 3 15:26:14 2004 Subject: relating dbs Message-ID: <7252A4A8-3E33-11D8-ACF2-000A95D87648@amug.org> Hi, Is it possible relate tables in separate db files? I have a growing database (in 4 file format), and I'd like to split off some of the tables, yet still relate them across db files. (Rebuilding corrupt files can take a very long time, even when only one table is problematic.) Thanks, Tim Davis V4RB, VSRV From sunshine at public.kherson.ua Sat Jan 3 23:58:00 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jan 3 15:57:52 2004 Subject: Table record count errors In-Reply-To: Message-ID: on 1/3/04 10:03 PM, Tim Davis at timdavis@amug.org wrote: Hi Tim, > I have record insert code that succeeds 99% of the time, but > occasionally I get a server crash and a diagnostic error dealing with > the record count. Please make log of crash and send to me. As I understand you do not have way to reproduce? > When this occurs, it can take a very long time to > rebuild the db from XML dump. How can these errors be avoided? Could a > self-repair routine be built into the server to fix such record > building anomalies? Yes, in 2.x we will add REPAIR function that will try fix problem that it can fix. > (!) Table has 208270 physical records but field has 208269 Tim, if this is Boolean field, then diagnose can be wrong. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sat Jan 3 23:59:22 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jan 3 15:59:21 2004 Subject: relating dbs In-Reply-To: <7252A4A8-3E33-11D8-ACF2-000A95D87648@amug.org> Message-ID: on 1/3/04 11:26 PM, Tim Davis at timdavis@amug.org wrote: > Hi, > > Is it possible relate tables in separate db files? In the 1.x no. But I hope for 2.x design this will be quite easy. I will try discuss this tomorrow with developers. > I have a growing > database (in 4 file format), and I'd like to split off some of the > tables, yet still relate them across db files. (Rebuilding corrupt > files can take a very long time, even when only one table is > problematic.) -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From timdavis at amug.org Sat Jan 3 16:49:34 2004 From: timdavis at amug.org (Tim Davis) Date: Sat Jan 3 17:49:41 2004 Subject: Table record count errors In-Reply-To: References: Message-ID: <7B91997E-3E47-11D8-9199-000A95D87648@amug.org> Hi Ruslan, >> I have record insert code that succeeds 99% of the time, but >> occasionally I get a server crash and a diagnostic error dealing with >> the record count. > > Please make log of crash and send to me. > > As I understand you do not have way to reproduce? No, I don't think I can. >> When this occurs, it can take a very long time to >> rebuild the db from XML dump. How can these errors be avoided? Could a >> self-repair routine be built into the server to fix such record >> building anomalies? > > Yes, in 2.x we will add REPAIR function that will try fix problem that > it > can fix. Cool! >> (!) Table has 208270 physical records but field has 208269 > > Tim, if this is Boolean field, then diagnose can be wrong. There are a bunch of fields and they are not a boolean fields. Tim From sunshine at public.kherson.ua Sun Jan 4 09:46:37 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sun Jan 4 01:46:34 2004 Subject: Table record count errors In-Reply-To: <7B91997E-3E47-11D8-9199-000A95D87648@amug.org> Message-ID: on 1/4/04 1:49 AM, Tim Davis at timdavis@amug.org wrote: > Hi Ruslan, > >>> I have record insert code that succeeds 99% of the time, but >>> occasionally I get a server crash and a diagnostic error dealing with >>> the record count. >> >> Please make log of crash and send to me. >> >> As I understand you do not have way to reproduce? > > No, I don't think I can. > >>> When this occurs, it can take a very long time to >>> rebuild the db from XML dump. How can these errors be avoided? Could a >>> self-repair routine be built into the server to fix such record >>> building anomalies? >> >> Yes, in 2.x we will add REPAIR function that will try fix problem that >> it >> can fix. > > Cool! > >>> (!) Table has 208270 physical records but field has 208269 >> >> Tim, if this is Boolean field, then diagnose can be wrong. > > There are a bunch of fields and they are not a boolean fields. Then I think you need add more Flush() calls after your record modifications. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From timdavis at amug.org Sun Jan 4 22:13:33 2004 From: timdavis at amug.org (Tim Davis) Date: Sun Jan 4 23:13:41 2004 Subject: Table record count errors In-Reply-To: References: Message-ID: Hi Ruslan, >>>> (!) Table has 208270 physical records but field has 208269 >>> >>> Tim, if this is Boolean field, then diagnose can be wrong. >> >> There are a bunch of fields and they are not a boolean fields. > > Then I think you need add more Flush() calls after your record > modifications. What occurred was a record was deleted (no flush), then a similar record was added and flushed, and that's when the problem began. I have added flush after deleting. Tim Davis From forgete at cafederic.com Mon Jan 5 13:59:31 2004 From: forgete at cafederic.com (Eric Forget) Date: Mon Jan 5 13:02:01 2004 Subject: [VSDK] Semaphore freeze after a crash Message-ID: Hi Ruslan, After a crash, everytime I try to execute an INSERT SQL statement I freeze there: #0 0x90017048 in semaphore_wait_signal_trap #1 0x90002300 in pthread_mutex_lock #2 0xb0041028 in FBL_IndexerTask::Run() #3 0xb0041c14 in FBL_Task::DoIndexing(FBL_Task*) #4 0xb0031704 in FBL_SecondaryIndex::BuildIndex() #5 0xb0031df0 in FBL_SecondaryIndex::OpenFirstTime() #6 0xb0031bd4 in FBL_SecondaryIndex::Open() #7 0xb0031254 in FBL_SecondaryIndex::AddPair(unsigned long) #8 0xb0021010 in BF_STRING::AddToIndex(unsigned long, FBL_FieldSorter*, char const*, bool) #9 0xb002e1ac in FBL_IndexedTable::AddRecord(bool) #10 0xb00c3b9c in OBL_CursorTable_Indirect::Add() #11 0xb006dad8 in VDK_Cursor::Add() #12 0xb00754dc in VDK_DataBase::Parse_InsertStatementSelect(char const*, unsigned long*, char const*, FBL_Array&) #13 0xb00748d8 in VDK_DataBase::Parse_InsertStatement(char const*, unsigned long*, FBL_Array*) Removing the index file didn't help. The diagnose say everything is all right. I may be wrong, but it looks like a flag has been kept in a wrong state in the database, isn't it? ?ric ___________________________________________________________________ Eric Forget Cafederic ForgetE@cafederic.com Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684> From totte at code66.se Mon Jan 5 20:45:07 2004 From: totte at code66.se (Totte Alm) Date: Mon Jan 5 13:45:16 2004 Subject: [VSDK] Semaphore freeze after a crash In-Reply-To: References: Message-ID: Eric, Ruslan!! I've tried to make Ruslan fix this bug for 6 months!! Its because of the fact that deep inside VSDK, there is a MUTEX that is created with the WRONG parameter, probably proted Windows code, as Windows Mutexes are REENTRANT by default unless you explicit specify POSIX Mode, but on UNIX Mutexes are NOT REENTRANT, hence the bug doesnt show up in the VSDK for Win32. If you have code to preproduce it, please send it to Ruslan as he "denies the existance of that mutex"! I KNOW its deep down in the FBL stuff, and its becuase the mutex stuff is classes them self, and its hard to try to folow WHAT is really compiled when we only have parts of it and not KNOW what really inside the VSDK Framework and really gets called. Sorry for the rough language, but I've really really really tried to make Ruslan fixc this one, but he cant find it... // Totte 2004-01-05 kl. 19.59 skrev Eric Forget: > Hi Ruslan, > > After a crash, everytime I try to execute an INSERT SQL statement I > freeze > there: > > #0 0x90017048 in semaphore_wait_signal_trap > #1 0x90002300 in pthread_mutex_lock > #2 0xb0041028 in FBL_IndexerTask::Run() > #3 0xb0041c14 in FBL_Task::DoIndexing(FBL_Task*) > #4 0xb0031704 in FBL_SecondaryIndex::BuildIndex() > #5 0xb0031df0 in FBL_SecondaryIndex::OpenFirstTime() > #6 0xb0031bd4 in FBL_SecondaryIndex::Open() > #7 0xb0031254 in FBL_SecondaryIndex::AddPair(unsigned long) > #8 0xb0021010 in BF_STRING::AddToIndex(unsigned long, > FBL_FieldSorter*, > char const*, bool) > #9 0xb002e1ac in FBL_IndexedTable::AddRecord(bool) > #10 0xb00c3b9c in OBL_CursorTable_Indirect::Add() > #11 0xb006dad8 in VDK_Cursor::Add() > #12 0xb00754dc in VDK_DataBase::Parse_InsertStatementSelect(char > const*, > unsigned long*, char const*, FBL_Array&) > #13 0xb00748d8 in VDK_DataBase::Parse_InsertStatement(char const*, > unsigned long*, FBL_Array*) > > Removing the index file didn't help. The diagnose say everything is all > right. > > I may be wrong, but it looks like a flag has been kept in a wrong > state in > the database, isn't it? > > ?ric > > ___________________________________________________________________ > > Eric Forget Cafederic > ForgetE@cafederic.com > > Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684> > > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > > ------------------------------------------------------------------------ -------------------- Give a man a fish and you feed him for a day; teach him to use the Net and he wont bother you for weeks. --unknown From sunshine at public.kherson.ua Mon Jan 5 21:57:45 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Jan 5 13:57:40 2004 Subject: Cache Questions In-Reply-To: <01ba01c3d3b6$7e8cef60$6901a8c0@LightningFlash> Message-ID: on 1/5/04 8:05 PM, Ken Ray at kray@sonsothunder.com wrote: > Ruslan, > > I'm a bit unclear as to how the cache(s) work. I know that you can set a > cache size when you run Valentina("Init"), and there is also a CacheSize > setting in the ValentinaServer.ini file. When running in standalone > mode, I understand that data from the database is cached in the client > computer's memory, up to the setting of the cache defined in > Valentina("Init"), but what happens when running with Valentina Server? > Are there actually *two* caches (one client, one server) in operation? > Or does one override the other? And if there *are* two caches, which one > is affected by Flush()? Hi Ken, Client do not have own cache. So for client size of cache is ignored in ValentinaInit(). When you tell to Client Flush(), this command go to Server. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Tue Jan 6 00:21:31 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Jan 5 16:21:23 2004 Subject: [VSDK] Semaphore freeze after a crash In-Reply-To: Message-ID: on 1/5/04 9:45 PM, Totte Alm at totte@code66.se wrote: > Eric, Ruslan!! > > I've tried to make Ruslan fix this bug for 6 months!! > Its because of the fact that deep inside VSDK, there is a MUTEX that is > created with the WRONG parameter, probably proted Windows code, as Windows > Mutexes are REENTRANT by default unless you explicit specify POSIX Mode, but > on UNIX Mutexes are NOT REENTRANT, hence the bug doesnt show up in the VSDK > for Win32. > > If you have code to preproduce it, please send it to Ruslan as he "denies the > existance of that mutex"! I KNOW its deep down in the FBL stuff, and its > becuase the mutex stuff is classes them self, and its hard to try to folow > WHAT is really compiled when we only have parts of it and not KNOW what > really inside the VSDK Framework and really gets called. > > Sorry for the rough language, but I've really really really tried to > make Ruslan fixc this one, but he cant find it... Correct. > #0 0x90017048 in semaphore_wait_signal_trap > #1 0x90002300 in pthread_mutex_lock > #2 0xb0041028 in FBL_IndexerTask::Run() 1) You both use VSDK.framework made with xCode. 2) This framework is built with FBL_SyncObjectsMac.cpp file. 3) you can see sources of all my Thread classes in the VSDK_MAC archive. 4) you can see that in file FBL_SyncObjectsMac.cpp I do not use pthreads directly. I call CARBON thread API as ::YieldToAnyThread(); 5) in the crash log we see call to pthread_mutex_lock I assume Apple call it in background. This is why, Totte, I cannot add that parameter to mutex to make it REENTRANT. This is NOT MY mutex. 6) Totte, I did offer you one way to solve this: -- framework include already compiled file FBL_SyncObjectsMac.cpp -- but at least in Visual C++, it is possible to include cpp file again into project, even it is already compiled into some DLL. May be xCode also allow such trick. So you need to try include FBL_SyncObjectsMac.cpp file into YOUR project. Visual in this case simply say: 2 definitions of function found. Second is ignored. IF this trick works you can A) DEBUG when and how my functions are called. B) may be you can simply comment out call ::YieldToAnyThread(); for YOUR project and may be this will make a trick. 7) I really do not want spend time on this now, if above workaround will work. In 2.0 we will have pthreads for OS X Valentina engine. And CARBON/CLASSIC versions of engine (if they will exists) will be simply single threads. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From forgete at cafederic.com Mon Jan 5 22:54:50 2004 From: forgete at cafederic.com (Eric Forget) Date: Mon Jan 5 21:57:00 2004 Subject: [VSDK] Semaphore freeze after a crash In-Reply-To: Message-ID: Hi Ruslan, Hi Totte, >> #0 0x90017048 in semaphore_wait_signal_trap >> #1 0x90002300 in pthread_mutex_lock >> #2 0xb0041028 in FBL_IndexerTask::Run() > > 1) You both use VSDK.framework made with xCode. ...And we both build with __MACH__ defined > 2) This framework is built with FBL_SyncObjectsMac.cpp file. ...And with FBL_SyncObjectsMac.h inlined functions > 3) you can see sources of all my Thread classes in the VSDK_MAC archive. Yes and No. We do not have FBL_IndexerTask::Run() which cause the problem!!! > 4) you can see that in file FBL_SyncObjectsMac.cpp I do not use pthreads > directly. > > I call CARBON thread API as ::YieldToAnyThread(); That's true. However, in FBL_SyncObjectsMac.h you make use of it. > 5) in the crash log we see call to pthread_mutex_lock > > I assume Apple call it in background. > > This is why, Totte, I cannot add that parameter > to mutex to make it REENTRANT. > This is NOT MY mutex. This is your mutex. Check 4) > 6) Totte, I did offer you one way to solve this: > > -- framework include already compiled file FBL_SyncObjectsMac.cpp > > -- but at least in Visual C++, it is possible to include cpp file again into > project, even it is already compiled into some DLL. May be xCode also allow > such trick. > > So you need to try include FBL_SyncObjectsMac.cpp file into YOUR project. > Visual in this case simply say: > 2 definitions of function found. Second is ignored. > > > IF this trick works you can > A) DEBUG when and how my functions are called. > B) may be you can simply comment out call ::YieldToAnyThread(); > for YOUR project and may be this will make a trick. I don't know if xCode support that but it will be useless in our case since the call is inlined. We will need all the code source that use FBL_MutexMac. > 7) I really do not want spend time on this now, if above workaround will > work. In 2.0 we will have pthreads for OS X Valentina engine. For me it is now a show stopper. I have 2 different cases where my application freeze. Maybe it is becoming more apparent with 10.3.2, I don't know. BTW, I found 2 problems with your code by just compiling it: 1) In FBL_MutexMac::Lock(): FBL_SyncObjectsMac.h:54: control reaches end of non-void function FBL_SyncObjectsMac.h:54: no return statement in function returning non-void 2) In FBL_SemaphoreMac::Lock(): FBL_SyncObjectsMac.cpp:182: comparison between signed and unsigned integer expressions Maybe you should enable more warnings when you compiles... I hope you will be able to solve that... ?ric ___________________________________________________________________ Eric Forget Cafederic ForgetE@cafederic.com Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684> From sunshine at public.kherson.ua Tue Jan 6 09:46:03 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Jan 6 01:45:55 2004 Subject: [VSDK] Semaphore freeze after a crash In-Reply-To: Message-ID: on 1/6/04 5:54 AM, Eric Forget at forgete@cafederic.com wrote: >> 3) you can see sources of all my Thread classes in the VSDK_MAC archive. > > Yes and No. We do not have FBL_IndexerTask::Run() which cause the problem!!! But it will call MutexMac functions. So you can set breakpoint here. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Tue Jan 6 09:46:59 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Jan 6 01:46:51 2004 Subject: [VSDK] Semaphore freeze after a crash In-Reply-To: Message-ID: on 1/6/04 5:54 AM, Eric Forget at forgete@cafederic.com wrote: >> 4) you can see that in file FBL_SyncObjectsMac.cpp I do not use pthreads >> directly. >> >> I call CARBON thread API as ::YieldToAnyThread(); > > That's true. However, in FBL_SyncObjectsMac.h you make use of it. > >> 5) in the crash log we see call to pthread_mutex_lock >> >> I assume Apple call it in background. >> >> This is why, Totte, I cannot add that parameter >> to mutex to make it REENTRANT. >> This is NOT MY mutex. > > This is your mutex. Check 4) Do you mean that I need simply move it from inline of .h Into .cpp ? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Tue Jan 6 09:51:22 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Jan 6 01:51:48 2004 Subject: [VSDK] Semaphore freeze after a crash In-Reply-To: Message-ID: on 1/6/04 5:54 AM, Eric Forget at forgete@cafederic.com wrote: >> IF this trick works you can >> A) DEBUG when and how my functions are called. >> B) may be you can simply comment out call ::YieldToAnyThread(); >> for YOUR project and may be this will make a trick. > > I don't know if xCode support that but it will be useless in our case since > the call is inlined. We will need all the code source that use FBL_MutexMac. But why? >> 7) I really do not want spend time on this now, if above workaround will >> work. In 2.0 we will have pthreads for OS X Valentina engine. > > For me it is now a show stopper. I have 2 different cases where my > application freeze. Maybe it is becoming more apparent with 10.3.2, I don't > know. > > BTW, I found 2 problems with your code by just compiling it: > > 1) In FBL_MutexMac::Lock(): > FBL_SyncObjectsMac.h:54: control reaches end of non-void function > FBL_SyncObjectsMac.h:54: no return statement in function returning non-void > > 2) In FBL_SemaphoreMac::Lock(): > FBL_SyncObjectsMac.cpp:182: comparison between signed and unsigned integer > expressions > > Maybe you should enable more warnings when you compiles... > > I hope you will be able to solve that... Well, Eric, can you try to make for me reproduce project. It looks like you need trash .ind file, So on open Valentina start build index, and you say it freeze? Or it needs some more special case? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From martin.kloss at gmx.de Tue Jan 6 11:58:26 2004 From: martin.kloss at gmx.de (Martin Kloss) Date: Tue Jan 6 04:58:39 2004 Subject: [V4MD] 32-bit picture fix Message-ID: <6.0.1.1.2.20040106114439.01cb7078@pop.gmx.de> Hi all, for those who are interested, here's some code to prevent V4MD from messing up your 32-bit pictures when storing them in a picture field. What's the problem: -------------------------------------------- When storing 32-bit Director bitmap members in a Valentina picture field, the JPEG-lib that V4MD uses somehow moves the first 1-pixel column from the left to the right and then moves it 1-pixel down. After retrieving the picture from the DB again, it looks pretty bad. Apparently, this does not happen with 16-bit images. The solution: -------------------------------------------- If you just store your images once and then display them, you can fix the image upon display, using Imaging Lingo: -- get image myImg = pMem.image.duplicate() myWidth = myImg.width myHeight = myImg.height -- copy right 1-pixel column to the left side srcRect = rect(myWidth-1, 0, myWidth, myHeight) destRect = rect(-1, 0, 0, myHeight) myImg.copyPixels(myImg, destRect, srcRect) -- set image pMem.image = myImg.crop(rect(-1, 0, myWidth-1, myHeight)) BUT you can also prepare the image before it gets stored in the picture field, so that it will look right when retrieved. The trick is simply to do the opposite of what V4MD does with the picture, so that storing it in the picture field actually "repairs" the picture, because we messed it up before so that the "bug" actually gets reversed. Here's the code: Let's assume you have a bitmap member reference stored in "pictMember". -- get image myImg = pictMember.image.duplicate() myWidth = myImg.width myHeight = myImg.height myNewImg = image(myWidth, myHeight, 32) -- copy last pixel col to first pixel col srcRect = rect(myWidth-1, 0, myWidth, myHeight) destRect = rect(0, -1, 1, myHeight-1) myNewImg.copyPixels(myImg, destRect, srcRect) -- copy rest of image srcRect = rect(0, 0, myWidth, myHeight) destRect = rect(1, 0, myWidth, myHeight) myNewImg.copyPixels(myImg, destRect, srcRect) -- assign image pictMember.image = myNewImg So at first we copy the original image and create a new 32-bit image with the same dimension. Then we copy the last pixel column from the right to the first column on the left. Additionally, the pixel columns needs to be shifted one pixel up, because V4MD shifts the pixel one down. Finally, we copy the rest of the source image and re-assign it to the member. Now you can store the member using SetPicture() or SQL with binded values and everything will stay as expected :-) Important: if you're using the fix before you store the image, you don't have to use the "display fix" mentioned before, because otherwise you will mess up the now fixed picture. So use either fix, but not both. Martin. Martin Kloss Like the author? Buy the book: http://www.amazon.de/exec/obidos/ASIN/3934358322/lingmmugd Need music? http://www.selling-sound.com Get your daily dose of Lingo: http://www.lingopark.de From rjb at rz.uni-potsdam.de Tue Jan 6 12:08:26 2004 From: rjb at rz.uni-potsdam.de (Robert Brenstein) Date: Tue Jan 6 05:23:24 2004 Subject: A Couple of Questions In-Reply-To: References: Message-ID: >on 12/22/03 6:27 PM, Ken Ray at kray@sonsothunder.com wrote: > >>> But you have not answer, Ken. >>> You use client-side cursors? >> >> For SQLSelect() I'm using server-side cursors. The problem comes when I use >> SQLSelectRecords(), which AFAIK doesn't have the ability to set server-side >> or client-side, right? > >Right, it uses client side cursor, because it need only read. > >And I was sure that SQLSelectRecords() will never be used on big selections. > Do I read it correctly that SQLSelectRecords in the server version creates a cursor on the client side? Since the point of SQLSelectRecords is to send only the data, it would be logical to create the temp cursor on the server and pass on only the data. Or am I missing something? Robert From sunshine at public.kherson.ua Tue Jan 6 13:31:13 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Jan 6 05:31:15 2004 Subject: A Couple of Questions In-Reply-To: Message-ID: on 1/6/04 1:08 PM, Robert Brenstein at rjb@rz.uni-potsdam.de wrote: >>>> But you have not answer, Ken. >>>> You use client-side cursors? >>> >>> For SQLSelect() I'm using server-side cursors. The problem comes when I use >>> SQLSelectRecords(), which AFAIK doesn't have the ability to set server-side >>> or client-side, right? >> >> Right, it uses client side cursor, because it need only read. >> >> And I was sure that SQLSelectRecords() will never be used on big selections. >> > > Do I read it correctly that SQLSelectRecords in the server version > creates a cursor on the client side? More correctly: it create client-side cursor. > Since the point of SQLSelectRecords is to send only the data, it would be > logical to create the temp cursor on the server and pass on only the data. Or > am I missing something? But cursor itself send only data, Robert. Here there is no overhead. And when data arrive to to client, The SQLSelectRecords() build string in special format. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From chuckbo at hinkles.us Tue Jan 6 23:12:48 2004 From: chuckbo at hinkles.us (chuck hinkle) Date: Tue Jan 6 23:13:03 2004 Subject: Syntax to insert a boolean Message-ID: I know there's probably an example for this, but I'm off to bed and am too tired to hunt it down tonight. Let's say I have a table with a vboolean field in it. (Call is isBold) And, I have an RB variable defined as a boolean. (Call it isBold) I'm building an SQL insert statement and I'm not sure how to do that. That is: dim isBold as boolean dim SQL as string dim vCur as vCursor dim Label as string dim Label_size as integer dim Record_count as integer SQL = "Insert into Labels (Label_name, Label_size, isBold) Values (" SQL = SQL + "'" + ValentinaEscapeString(Label, False) + "', " SQL = SQL + str(Label_size) + ", " SQL = SQL + ?????? <<< -- what goes here? SQL = SQL + ");" Record_count = app.myDB.sqlexecute(SQL) chuck || Chuck Hinkle [INTJ] || chuckbo@hinkles.us || || || "Perception is usually more persuasive than reality." From sunshine at public.kherson.ua Wed Jan 7 09:30:25 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Jan 7 01:30:19 2004 Subject: Syntax to insert a boolean In-Reply-To: Message-ID: on 1/7/04 7:12 AM, chuck hinkle at chuckbo@hinkles.us wrote: Hi Chuck, > I know there's probably an example for this, but I'm off to bed and am too > tired to hunt it down tonight. > > Let's say I have a table with a vboolean field in it. (Call is isBold) > And, I have an RB variable defined as a boolean. (Call it isBold) > > > I'm building an SQL insert statement and I'm not sure how to do that. That > is: > > > dim isBold as boolean > dim SQL as string > dim vCur as vCursor > dim Label as string > dim Label_size as integer > dim Record_count as integer > > SQL = "Insert into Labels (Label_name, Label_size, isBold) Values (" > SQL = SQL + "'" + ValentinaEscapeString(Label, False) + "', " > SQL = SQL + str(Label_size) + ", " > SQL = SQL + ?????? <<< -- what goes here? > SQL = SQL + ");" TRUE FALSE 1 0 > Record_count = app.myDB.sqlexecute(SQL) -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From mark at majico.com Tue Jan 6 23:31:14 2004 From: mark at majico.com (Mark Maslowski) Date: Wed Jan 7 01:31:20 2004 Subject: Adding Records at Start Message-ID: I have a Valentina database that I have been using with Director MX. Up until this evening, when I add a record via Lingo, it correctly places the new record at the end of the database. Tonight, for no real reason I can discern, it has begun to insert the new record at the BEGINNING of the database. Since I am building dynamic menus from that database, it is causing a problem in the menu order. Any idea why this might be happening all of a sudden and how I can get it to stop??? Thanks. - Mark *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* Mark D. Maslowski Partner/Designer/Programmer MAJICo - The Mark and June Interactive Company Serving Northern California - from Napa to Monterey! www.majico.com 831-336-3343 voice 831-336-3353 fax *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* From forgete at cafederic.com Wed Jan 7 03:43:34 2004 From: forgete at cafederic.com (Eric Forget) Date: Wed Jan 7 02:44:16 2004 Subject: [VSDK] Semaphore freeze after a crash In-Reply-To: Message-ID: >> 1) Replace the constructor of FBL_MutexMac, in "FBL_SyncObjectsMac.h" with: >> >> pthread_mutexattr_init(&attr_); >> pthread_mutexattr_settype(&attr_, PTHREAD_MUTEX_RECURSIVE); >> pthread_mutex_init(&m_, &attr_); > > Oh God!!!!!! > > I was blind !! :-(( > > I did not see that I already have MACHO version of Mutex that use pthreads. > Stupid me! > > When I did it ??? :-) > > I will try now your changes. > > And send to you this new framework. Your new build seems to work for me... Thanks! ?ric ___________________________________________________________________ Eric Forget Cafederic ForgetE@cafederic.com Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684> From sunshine at public.kherson.ua Wed Jan 7 10:49:54 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Jan 7 02:49:46 2004 Subject: Test, ignore Message-ID: -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From totte at code66.se Wed Jan 7 09:53:52 2004 From: totte at code66.se (Totte Alm) Date: Wed Jan 7 02:54:10 2004 Subject: [VSDK] Semaphore freeze after a crash In-Reply-To: References: Message-ID: <04A5397B-40EF-11D8-AA7F-000A95BA6372@code66.se> 2004-01-07 kl. 09.43 skrev Eric Forget: >> And send to you this new framework. > > Your new build seems to work for me... > Great! I had the same problem as you had, freshly created databases suddenly hang on that semaphore when it needed to create indexes and more than one index was needed to be created at the same time. I will soon get feedback from my customer if this works, but I am confindet it will. // Totte > Thanks! > ------------------------------------------------------------------------ ------------- sleep is a state of mind I have vague memories of..... From sunshine at public.kherson.ua Wed Jan 7 11:41:17 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Jan 7 03:41:09 2004 Subject: Adding Records at Start In-Reply-To: Message-ID: on 1/7/04 9:31 AM, Mark Maslowski at mark@majico.com wrote: > I have a Valentina database that I have been using with Director MX. Up > until this evening, when I add a record via Lingo, it correctly places the > new record at the end of the database. Tonight, for no real reason I can > discern, it has begun to insert the new record at the BEGINNING of the > database. Since I am building dynamic menus from that database, it is > causing a problem in the menu order. > > Any idea why this might be happening all of a sudden and how I can get it to > stop??? Hi Mark, 1) I think this happens because you have DELETE some records. 2) Valentina REUSE place of deleted records. 3) Mark, you cannot depend on order of records! this is bad idea. You can e.g. Add special field INDEX, And do SORTING on index to get predicted order. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From rblists at carsten-friehe.de Wed Jan 7 11:12:01 2004 From: rblists at carsten-friehe.de (=?iso-8859-1?Q?Carsten_Friehe?=) Date: Wed Jan 7 04:14:04 2004 Subject: Adding Records at Start Message-ID: <26883301$10734702193ffbdb0b63fb38.25814294@config17.schlund.de> Hi Ruslan! > You can e.g. Add special field INDEX, > And do SORTING on index to get predicted order. That is the place where sequences makes sense. :-) Carsten From forgete at cafederic.com Wed Jan 7 05:15:35 2004 From: forgete at cafederic.com (Eric Forget) Date: Wed Jan 7 04:15:39 2004 Subject: [VSDK] VDK_Cursor::Update() broken? Message-ID: Hi Ruslan, It seems that VDK_Cursor::Update() is broken. It does not always commit the changes to disk... Any idea? This is reproducible with both 1.10 and the special build you sent me yesterday. ?ric ___________________________________________________________________ Eric Forget Cafederic ForgetE@cafederic.com Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684> From totte at code66.se Wed Jan 7 11:49:14 2004 From: totte at code66.se (Totte Alm) Date: Wed Jan 7 04:49:18 2004 Subject: [VSDK] VDK_Cursor::Update() broken? In-Reply-To: References: Message-ID: <2278B27B-40FF-11D8-AA7F-000A95BA6372@code66.se> Hello Eric, Do you create the Cursors "updatable"? I failed in this when I went fr?n 1.9.7 -> 1.9.8. // Totte 2004-01-07 kl. 11.15 skrev Eric Forget: > Hi Ruslan, > > It seems that VDK_Cursor::Update() is broken. It does not always > commit the > changes to disk... Any idea? > > This is reproducible with both 1.10 and the special build you sent me > yesterday. > > ?ric > ___________________________________________________________________ > > Eric Forget Cafederic > ForgetE@cafederic.com > > Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684> > > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > > ------------------------------------------------------------------------ -------------------------- !YET the successor of .NET From rjb at rz.uni-potsdam.de Wed Jan 7 11:53:55 2004 From: rjb at rz.uni-potsdam.de (Robert Brenstein) Date: Wed Jan 7 04:58:45 2004 Subject: purchase question Message-ID: Ruslan, have you discussed with Lynn purchases in the transition period? I mean: if one purchases a copy of Valentina 1.x now, will he get a discount for upgrading to 2 or should I just wait until 2 is out or you announce the official grace/bonus period? Robert From sunshine at public.kherson.ua Wed Jan 7 17:25:16 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Jan 7 09:25:13 2004 Subject: [VSDK] VDK_Cursor::Update() broken? In-Reply-To: <2278B27B-40FF-11D8-AA7F-000A95BA6372@code66.se> Message-ID: on 1/7/04 12:49 PM, Totte Alm at totte@code66.se wrote: > Hello Eric, > Do you create the Cursors "updatable"? I failed in this when I went > fr?n 1.9.7 -> 1.9.8. I think Eric has switch to record locks far ago. > // Totte > 2004-01-07 kl. 11.15 skrev Eric Forget: > >> Hi Ruslan, >> >> It seems that VDK_Cursor::Update() is broken. It does not always >> commit the changes to disk... Any idea? What this means? -- for some cursors? -- for some records of cursor? -- Does flush() "commit" them? -- cursor is not Read Only ? -- record locks correct? -- some error codes in return ? >> This is reproducible with both 1.10 and the special build you sent me >> yesterday. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Wed Jan 7 17:28:16 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Jan 7 09:28:09 2004 Subject: purchase question In-Reply-To: Message-ID: on 1/7/04 12:53 PM, Robert Brenstein at rjb@rz.uni-potsdam.de wrote: Hi Robert, > Ruslan, have you discussed with Lynn purchases in the transition > period? Yes > I mean: if one purchases a copy of Valentina 1.x now, will he > get a discount for upgrading to 2 or should I just wait until 2 is > out or you announce the official grace/bonus period? We are not interested in stopping of sales now :-) So people that buy now (close to 2.0 release) will get 2.0 upgrade for FREE. We have not decide with Lynn yet exactly official shadow period. But I think it will be quite big (few months). -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Wed Jan 7 17:30:49 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Jan 7 09:30:43 2004 Subject: deleting records In-Reply-To: <8A43B0A6-40D6-11D8-ACFA-000A95D87648@amug.org> Message-ID: on 1/7/04 7:58 AM, Tim Davis at timdavis@amug.org wrote: Hi Tim, >> You can try remove indexes for all fields of table before you start >> deletion. If this help, then you an do this for BIG sets of deleted >> records. >> Then return indexes back. > > Does Valentina turn on indexing on fields which have used in searches? YES. Valentina 1.x yes. In 2.0 we will redo this search will not add index sorting still will add it > I don't think I set all these indexes, they seemed to come on > automatically. If so, is it ok to let them set themselves without my > help? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From rjb at rz.uni-potsdam.de Wed Jan 7 16:41:01 2004 From: rjb at rz.uni-potsdam.de (Robert Brenstein) Date: Wed Jan 7 09:57:45 2004 Subject: purchase question In-Reply-To: References: Message-ID: >on 1/7/04 12:53 PM, Robert Brenstein at rjb@rz.uni-potsdam.de wrote: > >Hi Robert, > >> Ruslan, have you discussed with Lynn purchases in the transition >> period? > >Yes > >> I mean: if one purchases a copy of Valentina 1.x now, will he >> get a discount for upgrading to 2 or should I just wait until 2 is >> out or you announce the official grace/bonus period? > >We are not interested in stopping of sales now :-) > >So people that buy now (close to 2.0 release) will get 2.0 upgrade for FREE. > >We have not decide with Lynn yet exactly official shadow period. >But I think it will be quite big (few months). > Okay, but the bottom line is, since the release date of 2 is not quite predictable yet, that it is better to wait until the shadow period is officially announced. Robert From fb at memedia.de Wed Jan 7 17:14:32 2004 From: fb at memedia.de (Florian Bogeschdorfer) Date: Wed Jan 7 10:14:43 2004 Subject: AW: purchase question In-Reply-To: Message-ID: > Okay, but the bottom line is, since the release date of 2 is > not quite predictable yet, that it is better to wait until > the shadow period is officially announced. > I do not agree. The bottom line is that Paradigma Soft as always is very very customer friendly - almost a friend - and that they will treat you fair. Florian From erichg at mcmm.com Wed Jan 7 17:51:25 2004 From: erichg at mcmm.com (Erich Geiersberger) Date: Wed Jan 7 10:51:54 2004 Subject: [V4MD] V4MD Xtra vs. V4MD_client Xtra Message-ID: Hi Ruslan, my current project requires that the user has a choice to install either a single user database or a server version. Since there is also an option to update from a single user version to the server version, the installation process is rather complex since I need to read data from an existant single user version and write to the server database during installation. Obviously, using the V4MD_Client Xtra does not give me access to the single user database since this Xtra expects a running server. So, I have tried to open the Xtras I need during installation explicitely with openxlib() and close them afterwards with closexlib(). This does not work as expected. I always get an "xtras in use" error when I try do close the current Xtra, even if my database and all instances of the Xtra have been disposed. What shall I do? Regards, Erich Geiersberger Media Connect Multimedia Gratzmuellerstr. 1 86150 Augsburg, Germany Tel: +49 821/ 34752 - 0 fax: +49 821/ 34752 - 49 eMail erichg@mcmm.com http://www.mcmm.com From fb at memedia.de Wed Jan 7 18:04:01 2004 From: fb at memedia.de (Florian Bogeschdorfer) Date: Wed Jan 7 11:04:24 2004 Subject: AW: [V4MD] V4MD Xtra vs. V4MD_client Xtra In-Reply-To: Message-ID: Hi Erich! Just a few thoughts... 1. Why not use the server always, also for "single user"... If you are a VDN member, it will not cost you more since the server with up to 5 connections does not cost per installation... This way you have much less work and "switching" from single to server mode is technically no longer necessary. At least this how I do it and it is working perfect. 2. Why would you use openXlib? I wonder if you could use both xtras in the same folder, calling one or the other. 3. I guess you can upgrade to the server version but not downgrade? So maybe you could call another projector copying the server xtra to XTRAS and installing the server, then restart your application. 4. Why read data from single and write to server database? Aren't they compatible Ruslan?? If so you could easily change the database path in the server ini with BUDAPI maybe, restart and that is it... Or you install the server and just COPY (fileXtra) the DB to the database folder... Best regards, Florian > -----Urspr?ngliche Nachricht----- > Von: valentina-bounces@lists.macserve.net > [mailto:valentina-bounces@lists.macserve.net] Im Auftrag von > Erich Geiersberger > Gesendet: Mittwoch, 7. Januar 2004 17:51 > An: valentina@lists.macserve.net > Betreff: [V4MD] V4MD Xtra vs. V4MD_client Xtra > > Hi Ruslan, > > my current project requires that the user has a choice to > install either a single user database or a server version. > Since there is also an option to update from a single user > version to the server version, the installation process is > rather complex since I need to read data from an existant > single user version and write to the server database during > installation. > > Obviously, using the V4MD_Client Xtra does not give me access > to the single user database since this Xtra expects a running > server. So, I have tried to open the Xtras I need during > installation explicitely with openxlib() and close them > afterwards with closexlib(). > > This does not work as expected. I always get an "xtras in > use" error when I try do close the current Xtra, even if my > database and all instances of the Xtra have been disposed. > What shall I do? > > Regards, > Erich Geiersberger > > Media Connect Multimedia > Gratzmuellerstr. 1 > 86150 Augsburg, Germany > > Tel: +49 821/ 34752 - 0 > fax: +49 821/ 34752 - 49 > eMail erichg@mcmm.com > http://www.mcmm.com > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina From forgete at cafederic.com Wed Jan 7 12:09:48 2004 From: forgete at cafederic.com (Eric Forget) Date: Wed Jan 7 11:13:54 2004 Subject: [VSDK] VDK_Cursor::Update() broken? In-Reply-To: Message-ID: >> Do you create the Cursors "updatable"? I failed in this when I went >> fr?n 1.9.7 -> 1.9.8. > > I think Eric has switch to record locks far ago. I'm not sure what Totte means by Cursor "updatable"? All my cursors are created that way: new VDK_Cursor(myDB, kClient, kNoLock, kRandom) >> // Totte >> 2004-01-07 kl. 11.15 skrev Eric Forget: >> >>> Hi Ruslan, >>> >>> It seems that VDK_Cursor::Update() is broken. It does not always >>> commit the changes to disk... Any idea? > > What this means? Let me explain how I use the cursors. Essentially, I always have 3 cursors alive on my database at any time. 1) All the fields of the current record, as seen by the UI. 2) The list of all the records (RecID + Name) that meet some criteria (e.g. Name filter, label = 1) 3) I have a few "view as" like view as Label. So, the third is all the distinct name for the current view as. I have a few rules to delete one or the two others and recreate them when necessary. > -- for some cursors? I found only the problem with cursor 1) > -- for some records of cursor? Yes, only for some records. If I go to the problematic record, make a change, ask the value again to the cursor it seems ok. However, if I delete the cursor, then recreate it to request the value of the same record, the database looks to have never been updated. > -- Does flush() "commit" them? I've just try it and it change nothing. > -- cursor is not Read Only ? Always kNoLock > -- record locks correct? Hmm, what do you means by that? > -- some error codes in return ? VDK_Cursor::Update() just return a bool. Is there something I missing about it? There is no C++ exception thrown if it what you means? And Update() always return true. Eric ___________________________________________________________________ Eric Forget Cafederic ForgetE@cafederic.com Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684> From rjb at rz.uni-potsdam.de Wed Jan 7 18:11:18 2004 From: rjb at rz.uni-potsdam.de (Robert Brenstein) Date: Wed Jan 7 11:18:44 2004 Subject: AW: purchase question In-Reply-To: References: Message-ID: > > Okay, but the bottom line is, since the release date of 2 is >> not quite predictable yet, that it is better to wait until >> the shadow period is officially announced. >> > >I do not agree. The bottom line is that Paradigma Soft as always is very >very customer friendly - almost a friend - and that they will treat you >fair. > >Florian Florian, I did not say anything about unfair treatment. But business is business abnd money is money. As much as I'd like to support Ruslan and Co with multiple purchases, I have allotment for a single purchase this new year, so I can't take chances. Besides, I expect Paradigma to officially announce something relatively soon as more people may be in similar situation while deciding their budgets for this year. Particularly that the VServer is quite visibly presented on their web and its purchases encouraged, there must be a clear policy formulated with regards to transition from 1.x to 2.0 since the upgrading ain't free. I was basically prodding to see how soon to expect such a policy. Robert From fb at memedia.de Wed Jan 7 18:19:46 2004 From: fb at memedia.de (Florian Bogeschdorfer) Date: Wed Jan 7 11:20:26 2004 Subject: AW: [VSDK] VDK_Cursor::Update() broken? In-Reply-To: Message-ID: > > > -- Does flush() "commit" them? > > I've just try it and it change nothing. > > > -- cursor is not Read Only ? > > Always kNoLock Are you sure there is no other cursor blocking the update? Another ReadOnly cursor will block the update I think. That's why I use NoLocks all the time. Also is your cursor related to more than one table? Like SELECT something FROM table1, table2 WHERE condition?? In this case Valentina currently will not support writing. Is it locked automatically Florian From forgete at cafederic.com Wed Jan 7 12:27:53 2004 From: forgete at cafederic.com (Eric Forget) Date: Wed Jan 7 11:30:41 2004 Subject: AW: [VSDK] VDK_Cursor::Update() broken? In-Reply-To: Message-ID: > Are you sure there is no other cursor blocking the update? Another ReadOnly > cursor will block the update I think. That's why I use NoLocks all the time. Yes, I'm sure. > Also is your cursor related to more than one table? Like SELECT something > FROM table1, table2 WHERE condition?? > > In this case Valentina currently will not support writing. Is it locked > automatically The problematic cursor is on 1 table only. My other 2 cursors, which works perfectly may use more than 1 table. Are you sure about what you are saying? ?ric ___________________________________________________________________ Eric Forget Cafederic ForgetE@cafederic.com Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684> From fb at memedia.de Wed Jan 7 18:33:11 2004 From: fb at memedia.de (Florian Bogeschdorfer) Date: Wed Jan 7 11:33:40 2004 Subject: AW: AW: purchase question In-Reply-To: Message-ID: Hi Robert! > > > >Florian > > Florian, I did not say anything about unfair treatment. No, I did not say that you said that :-) But > business is business abnd money is money. As much as I'd like > to support Ruslan and Co with multiple purchases, I have > allotment for a single purchase this new year, so I can't > take chances. Besides, I expect Paradigma to officially > announce something relatively soon as more people may be in > similar situation while deciding their budgets for this year. > Particularly that the VServer is quite visibly presented on > their web and its purchases encouraged, there must be a clear > policy formulated with regards to transition from 1.x to 2.0 > since the upgrading ain't free. I was basically prodding to > see how soon to expect such a policy. > > Robert You are right, but from past policies I expect Paradigma to do a very good deal here, that is all. That's all I wanted to say. Best regards, Florian From mark at majico.com Wed Jan 7 09:37:20 2004 From: mark at majico.com (Mark Maslowski) Date: Wed Jan 7 11:37:44 2004 Subject: Adding Records at Start In-Reply-To: Message-ID: > 1) I think this happens because you have DELETE some records. > > 2) Valentina REUSE place of deleted records. > > 3) Mark, you cannot depend on order of records! > this is bad idea. > > You can e.g. Add special field INDEX, > And do SORTING on index to get predicted order. OH, I buy that. I'm just wondering why it was working one way, with adding AND deleting records at the end for weeks and weeks and all of a sudden it changes it's behavior. And I'm not sure the REUSE explanation works because I've never deleted the first record ever and now it's inserting data there. It's not that I can't work around this, although it's a pain. It just makes me nervous when a key piece of software suddenly starts behaving unpredictably for no apparent reason. - Mark *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* Mark D. Maslowski Partner/Designer/Programmer MAJICo - The Mark and June Interactive Company Serving Northern California - from Napa to Monterey! www.majico.com 831-336-3343 voice 831-336-3353 fax *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* From erichg at mcmm.com Wed Jan 7 18:40:11 2004 From: erichg at mcmm.com (Erich Geiersberger) Date: Wed Jan 7 11:40:33 2004 Subject: AW: [V4MD] V4MD Xtra vs. V4MD_client Xtra In-Reply-To: References: Message-ID: >Hi Erich! > >Just a few thoughts... > >1. Why not use the server always, also for "single user"... If you are a VDN >member, it will not cost you more since the server with up to 5 connections >does not cost per installation... >This way you have much less work and "switching" from single to server mode >is technically no longer necessary. At least this how I do it and it is >working perfect. Thanks Florian. Because this would make it much more difficult to update. Until now, some customers have 2 or 3 single installations. Installing those as server versions would lead to more than one server running in a network. On updates from single to server I would need to shut down running servers somewhere and so on... >2. Why would you use openXlib? I wonder if you could use both xtras in the >same folder, calling one or the other. Hmm, I have tried it once by accident and got crashes. How should I call them? The syntax is the same for both. >3. I guess you can upgrade to the server version but not downgrade? So maybe >you could call another projector copying the server xtra to XTRAS and >installing the server, then restart your application. No need for a downgrade. Copying the right Xtras needed for the final version in question is not the problem. Only during installation I need to open both a single database (to read data) and a network database (to write to). >4. Why read data from single and write to server database? Aren't they >compatible Ruslan?? If so you could easily change the database path in the >server ini with BUDAPI maybe, restart and that is it... >Or you install the server and just COPY (fileXtra) the DB to the database >folder... Because people with single versions already have gathered information in their personal databases which need to be included into a server version during an update. Sure, the databases are the same for single user and network, but the information from the existant installations need to be gathered. I also need to open old V12 databases, gather informations from them and write these to the network database in some cases. From fb at memedia.de Wed Jan 7 18:42:14 2004 From: fb at memedia.de (Florian Bogeschdorfer) Date: Wed Jan 7 11:42:28 2004 Subject: AW: AW: [VSDK] VDK_Cursor::Update() broken? In-Reply-To: Message-ID: > > The problematic cursor is on 1 table only. My other 2 > cursors, which works perfectly may use more than 1 table. Are > you sure about what you are saying? > Absolutely. In Valentina 1 you can not write to a cursor that joins any tables, at least not if you are trying to write to both tables but I think generally. These cursors are always locked. Since a locked cursor might prevent other cursors from saving the data, could it be that you accidcentially "locked" some data in a different cursor? Best regards, Florian From valentina at brainchild.nl Wed Jan 7 18:44:09 2004 From: valentina at brainchild.nl (Richard Altenburg) Date: Wed Jan 7 11:44:48 2004 Subject: Adding Records at Start In-Reply-To: Message-ID: On 07-01-2004 18:37, "Mark Maslowski" wrote: > And I'm not sure the REUSE explanation works because > I've never deleted the first record ever and now it's inserting data there. I don't think there is any relational database where you could rely on the record order without using an index you can sort on. So even when you did not delete the first record, you would never know which records shows up first after a query. Sorting on an index you know the values of is the only safe way of doing this. No deletion, addition or modification will mess up your own made up order, that's for sure. -- Brainchild :: Every product a sparkle of common sense * ----------------------------------------------------- * * * From fb at memedia.de Wed Jan 7 18:50:38 2004 From: fb at memedia.de (Florian Bogeschdorfer) Date: Wed Jan 7 11:50:52 2004 Subject: AW: Adding Records at Start In-Reply-To: Message-ID: > > It's not that I can't work around this, although it's a pain. > It just makes me nervous when a key piece of software > suddenly starts behaving unpredictably for no apparent reason. > Had to learn it the hard way too. Now what I do is having a table with all index numbers saved like #table1:321 #table2:12 And so on. So if I need a new index number for a new record of any table I just query my "indexTable", get the new number (use it) , add 1 and write it back Florian From fb at memedia.de Wed Jan 7 18:53:23 2004 From: fb at memedia.de (Florian Bogeschdorfer) Date: Wed Jan 7 11:53:35 2004 Subject: AW: AW: [V4MD] V4MD Xtra vs. V4MD_client Xtra In-Reply-To: Message-ID: I understand now. Difficult task. I would rather export the single DB to XML or CSV if possible and then import it to the server version. Of course if you have BLOBs or PICs it will fail I guess. I wonder what would happen if you rename your databases to Single 1, Single 2 etc, copy them in the server databases folder and restart the service. Or copy them there before you start the service. Now they should be available from the Vserver. Then make a new DB and copy each record from the different DBs seperately? V12 is not a problem since you can use the different xtras. Florian > > > >4. Why read data from single and write to server database? > Aren't they > >compatible Ruslan?? If so you could easily change the > database path in the > >server ini with BUDAPI maybe, restart and that is it... > >Or you install the server and just COPY (fileXtra) the DB to > the database > >folder... > > Because people with single versions already have gathered information > in their personal databases which need to be included into a server > version during an update. Sure, the databases are the same for single > user and network, but the information from the existant installations > need to be gathered. I also need to open old V12 databases, gather > informations from them and write these to the network database in > some cases. > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina From valentina at brainchild.nl Wed Jan 7 19:02:09 2004 From: valentina at brainchild.nl (Richard Altenburg) Date: Wed Jan 7 12:02:53 2004 Subject: AW: Adding Records at Start In-Reply-To: Message-ID: On 07-01-2004 18:50, "Florian Bogeschdorfer" wrote: > And so on. So if I need a new index number for a new record of any table I > just query my "indexTable", get the new number (use it) , add 1 and write it > back I've done quite some work with 4th Dimension. It has a "Sequence number" function for every table, which automatically generates the next unique id for a table, so that you can store it in a field you want it in. Now that is a handy function! But of course this can easily be done yourself, as you wrote. From forgete at cafederic.com Wed Jan 7 13:15:00 2004 From: forgete at cafederic.com (Eric Forget) Date: Wed Jan 7 12:19:02 2004 Subject: AW: AW: [VSDK] VDK_Cursor::Update() broken? In-Reply-To: Message-ID: >> >> The problematic cursor is on 1 table only. My other 2 >> cursors, which works perfectly may use more than 1 table. Are >> you sure about what you are saying? >> > Absolutely. In Valentina 1 you can not write to a cursor that joins any > tables, at least not if you are trying to write to both tables but I think > generally. These cursors are always locked. Since a locked cursor might > prevent other cursors from saving the data, could it be that you > accidcentially "locked" some data in a different cursor? If this is true, then why the comments on kNoLock in "FBL.h" says: "Cursor do not set locks and ignore locks of others."? Ruslan what is the official rules about this? ?ric ___________________________________________________________________ Eric Forget Cafederic ForgetE@cafederic.com Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684> From sunshine at public.kherson.ua Wed Jan 7 20:24:49 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Jan 7 12:25:41 2004 Subject: AW: [V4MD] V4MD Xtra vs. V4MD_client Xtra In-Reply-To: Message-ID: on 1/7/04 7:04 PM, Florian Bogeschdorfer at fb@memedia.de wrote: > Hi Erich! > > Just a few thoughts... > > 1. Why not use the server always, also for "single user"... If you are a VDN > member, it will not cost you more since the server with up to 5 connections > does not cost per installation... > This way you have much less work and "switching" from single to server mode > is technically no longer necessary. At least this how I do it and it is > working perfect. Good point. > 2. Why would you use openXlib? I wonder if you could use both xtras in the > same folder, calling one or the other. > > 3. I guess you can upgrade to the server version but not downgrade? So maybe > you could call another projector copying the server xtra to XTRAS and > installing the server, then restart your application. > > 4. Why read data from single and write to server database? Aren't they > compatible Ruslan?? They are compatible of course. > If so you could easily change the database path in the > server ini with BUDAPI maybe, restart and that is it... > Or you install the server and just COPY (fileXtra) the DB to the database > folder... -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Wed Jan 7 20:32:34 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Jan 7 12:32:41 2004 Subject: AW: [V4MD] V4MD Xtra vs. V4MD_client Xtra In-Reply-To: Message-ID: on 1/7/04 7:40 PM, Erich Geiersberger at erichg@mcmm.com wrote: >> 3. I guess you can upgrade to the server version but not downgrade? So maybe >> you could call another projector copying the server xtra to XTRAS and >> installing the server, then restart your application. > > No need for a downgrade. Copying the right Xtras needed for the final > version in question is not the problem. > Only during installation I need to open both a single database (to > read data) and a network database (to write to). Erich, I think this is point of confusion. You MUST NOT do nothing hard to transfer EXISTED user database under server!!! You need just DROP this db files into "Databases" folder of Server, And REGISTER this database to Vserver. That is all. Now server knows it. Or you want to merge few databases together ??? Then you can merge them at first using V4MD. And you get single db and again just register it to server -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Wed Jan 7 20:35:21 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Jan 7 12:35:40 2004 Subject: AW: [V4MD] V4MD Xtra vs. V4MD_client Xtra In-Reply-To: Message-ID: on 1/7/04 7:40 PM, Erich Geiersberger at erichg@mcmm.com wrote: >> 4. Why read data from single and write to server database? Aren't they >> compatible Ruslan?? If so you could easily change the database path in the >> server ini with BUDAPI maybe, restart and that is it... >> Or you install the server and just COPY (fileXtra) the DB to the database >> folder... > > Because people with single versions already have gathered information > in their personal databases which need to be included into a server > version during an update. Sure, the databases are the same for single > user and network, but the information from the existant installations > need to be gathered. I also need to open old V12 databases, gather > informations from them and write these to the network database in > some cases. It looks you will need preapre SEVERAL applications for your users: MAIN APPS 1 app -- use V4MD 2 app -- use V4MD Client -------------------- HELPER APPS: 3 App that use V4MD, can merge several V4MD applications. 4 app use V12 Xtra AND V4MD to extract V12 data into Valentina db files. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Wed Jan 7 20:41:34 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Jan 7 12:41:47 2004 Subject: [VSDK] VDK_Cursor::Update() broken? In-Reply-To: Message-ID: on 1/7/04 7:09 PM, Eric Forget at forgete@cafederic.com wrote: >>> Do you create the Cursors "updatable"? I failed in this when I went >>> fr?n 1.9.7 -> 1.9.8. >> >> I think Eric has switch to record locks far ago. > > I'm not sure what Totte means by Cursor "updatable"? > > All my cursors are created that way: > > new VDK_Cursor(myDB, kClient, kNoLock, kRandom) BTW, Eric, I always did recommend to use kServer in LOCAL applications. Then in case you decide switch to Vserver it will work as expected. Or even better -- always think that you work with server and use correct combinations of flags. I do not say that this cause problems in your case, Just a note. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Wed Jan 7 20:53:51 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Jan 7 12:53:43 2004 Subject: AW: AW: [VSDK] VDK_Cursor::Update() broken? In-Reply-To: Message-ID: on 1/7/04 7:42 PM, Florian Bogeschdorfer at fb@memedia.de wrote: >>>> Also is your cursor related to more than one table? Like SELECT something >>>> FROM table1, table2 WHERE condition?? >>>> >>>> In this case Valentina currently will not support writing. Is it locked >>>> automatically > >>> The problematic cursor is on 1 table only. My other 2 >>> cursors, which works perfectly may use more than 1 table. Are >>> you sure about what you are saying? >>> >> Absolutely. In Valentina 1 you can not write to a cursor that joins any >> tables, at least not if you are trying to write to both tables but I think >> generally. These cursors are always locked. Since a locked cursor might >> prevent other cursors from saving the data, could it be that you >> accidentally "locked" some data in a different cursor? > If this is true, then why the comments on kNoLock in "FBL.h" says: "Cursor > do not set locks and ignore locks of others."? > > Ruslan what is the official rules about this? Let me explain. 1) class Cursor have function bool IsReadOnly() This functions returns TRUE in case you make cursor as JOIN of tables, Or use DISTINCT, or GROUP BY. This have NO any relation to RECORD LOCKS. This is related to fact that RESULT TABLE cannot be modified. And this is not limit of Valentina 1.x. This is BIG FACT. There are some exceptions when JOIN cursor still can do updated. A) Valentina 1.x right now will allow to update cursor on FEW tbales, if they are related as 1 : 1. B) in the future it is possible to allow update on field of cursor that was SELECTED from MANY table of join. This is why was added this function, so you can always ask if cursor can be updateable. Taking into account point b) in future this should be changed as IsReadOnly() for each field of Cursor. --------------- 2) as I understand, this is not a problem of Eric now, Because he use always NoLock, yes? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Wed Jan 7 20:58:19 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Jan 7 12:58:36 2004 Subject: [VSDK] VDK_Cursor::Update() broken? In-Reply-To: Message-ID: on 1/7/04 7:09 PM, Eric Forget at forgete@cafederic.com wrote: > Let me explain how I use the cursors. Essentially, I always have 3 cursors > alive on my database at any time. > > 1) All the fields of the current record, as seen by the UI. > > 2) The list of all the records (RecID + Name) that meet some criteria (e.g. > Name filter, label = 1) > > 3) I have a few "view as" like view as Label. So, the third is all the > distinct name for the current view as. > > I have a few rules to delete one or the two others and recreate them when > necessary. I did not catch. All 3 cursors are based on the same table ? Eric, When this problem have come? If you update first cursor, then how other 2 see its changes. If you will have just ONE RECORD in that table, Also reproducible ? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From erichg at mcmm.com Wed Jan 7 19:58:32 2004 From: erichg at mcmm.com (Erich Geiersberger) Date: Wed Jan 7 12:58:56 2004 Subject: AW: [V4MD] V4MD Xtra vs. V4MD_client Xtra In-Reply-To: References: Message-ID: > >> 3. I guess you can upgrade to the server version but not >downgrade? So maybe > >> you could call another projector copying the server xtra to XTRAS and > >> installing the server, then restart your application. > > > > No need for a downgrade. Copying the right Xtras needed for the final > > version in question is not the problem. > > Only during installation I need to open both a single database (to > > read data) and a network database (to write to). > >Erich, > >I think this is point of confusion. > >You MUST NOT do nothing hard to transfer >EXISTED user database under server!!! > >You need just DROP this db files into "Databases" folder of Server, >And REGISTER this database to Vserver. > >That is all. >Now server knows it. Sure. But imagine the following scenario: User has - either Old V12 database - or Valetina database - plus 3 or 4 additional external files from old installation - on PC or Mac So I need to gather Information from various places, not only from an existing Valentina Database. Old database contains basic data Plus own notes and settings. Now user wants to update to a server DB. I need to: - copy new basic Database from CD-ROM to Server directory - fetch personal settings and notes from V12 or Valentina based application locally or over a network - import additional data from settings files and - set username, password etc. for admin in Master DB. This is all already finished and working, i.e. opening, gathering, etc. The only problem is: When I am finished with gathering information (using V4MD Xtra) I need to write those data into the new server database which requires V4MD_Client. Is there something wrong in opening and closing the Xtras explicitely using openxlib() and closexlib()? >Or you want to merge few databases together ??? >Then you can merge them at first using V4MD. >And you get single db and again just register it to server > >-- Theoretically, I could write an interim database with all the information needed to "Databases" then quit out of the projector and start a new one to import the data into the server version. But I am looking for a less complicated way... Erich From forgete at cafederic.com Wed Jan 7 14:02:40 2004 From: forgete at cafederic.com (Eric Forget) Date: Wed Jan 7 13:04:30 2004 Subject: [VSDK] VDK_Cursor::Update() broken? In-Reply-To: Message-ID: > I did not catch. > All 3 cursors are based on the same table ? In some case yes, but not always. > Eric, > When this problem have come? > > If you update first cursor, then how other 2 see its changes. If the changes in first cursor impact the others, I delete (C++ delete) and then recreate them from scratch. ___________________________________________________________________ Eric Forget Cafederic ForgetE@cafederic.com Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684> From sunshine at public.kherson.ua Wed Jan 7 21:06:12 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Jan 7 13:06:16 2004 Subject: AW: [V4MD] V4MD Xtra vs. V4MD_client Xtra In-Reply-To: Message-ID: on 1/7/04 8:58 PM, Erich Geiersberger at erichg@mcmm.com wrote: >>>> 3. I guess you can upgrade to the server version but not >> downgrade? So maybe >>>> you could call another projector copying the server xtra to XTRAS and >>>> installing the server, then restart your application. >>> >>> No need for a downgrade. Copying the right Xtras needed for the final >>> version in question is not the problem. >>> Only during installation I need to open both a single database (to >>> read data) and a network database (to write to). >> >> Erich, >> >> I think this is point of confusion. >> >> You MUST NOT do nothing hard to transfer >> EXISTED user database under server!!! >> >> You need just DROP this db files into "Databases" folder of Server, >> And REGISTER this database to Vserver. >> >> That is all. >> Now server knows it. > > > Sure. But imagine the following scenario: > User has > - either Old V12 database > - or Valetina database > - plus 3 or 4 additional external files from old installation > - on PC or Mac > > So I need to gather Information from various places, not only from an > existing Valentina Database. > Old database contains basic data Plus own notes and settings. Read my other letter with idea of 4 apps. Works ? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From fci at europa.com Wed Jan 7 11:08:18 2004 From: fci at europa.com (Lynn Fredricks) Date: Wed Jan 7 13:08:31 2004 Subject: purchase question In-Reply-To: Message-ID: <000b01c3d551$9ec195a0$0100000a@LYNNP42G> > >We have not decide with Lynn yet exactly official shadow > period. But I > >think it will be quite big (few months). > > > > Okay, but the bottom line is, since the release date of 2 is not > quite predictable yet, that it is better to wait until the shadow > period is officially announced. Once the beta is locked down then all will be clear. Best regards, Lynn Fredricks President Proactive International, LLC http://www.proactive-intl.com From sunshine at public.kherson.ua Wed Jan 7 21:12:31 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Jan 7 13:12:26 2004 Subject: AW: [V4MD] V4MD Xtra vs. V4MD_client Xtra In-Reply-To: Message-ID: on 1/7/04 8:58 PM, Erich Geiersberger at erichg@mcmm.com wrote: > Sure. But imagine the following scenario: > User has > - either Old V12 database > - or Valetina database > - plus 3 or 4 additional external files from old installation > - on PC or Mac > > So I need to gather Information from various places, not only from an > existing Valentina Database. > Old database contains basic data Plus own notes and settings. > > Now user wants to update to a server DB. > > I need to: > - copy new basic Database from CD-ROM to Server directory > - fetch personal settings and notes from V12 or Valentina based > application locally or over a network > - import additional data from settings files and > - set username, password etc. for admin in Master DB. > > This is all already finished and working, i.e. opening, gathering, etc. > The only problem is: > When I am finished with gathering information (using V4MD Xtra) I > need to write those data into the new server database which requires > V4MD_Client. But you can simply to use database with gathered information! Why you think you need write info from it to Serve database??? > Is there something wrong in opening and closing the Xtras explicitely > using openxlib() and closexlib()? Erich, Right now we DO NOT provide ability of using BOTH LOCAL and CLIENT Extras inside of single projector. Although Director + V4MD is probably the only IDE now that allow keep both Xtra in the plugin folder. But I think we still get confusing because they have the same API. We will try later resolve this. Probably in such way: + Valentina_Local.dll V4MD.Xtra + Valentina_Client.dll So we get single Xtra, and single API, and need just say what database we want to get LOCAL or remote. And I think this way can work in 3 ways only local only client both -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Wed Jan 7 21:14:07 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Jan 7 13:14:45 2004 Subject: [VSDK] VDK_Cursor::Update() broken? In-Reply-To: Message-ID: on 1/7/04 9:02 PM, Eric Forget at forgete@cafederic.com wrote: >> I did not catch. >> All 3 cursors are based on the same table ? > > In some case yes, but not always. What I can say... I do not see reason. May be bug. May be your mistake. Strange that Update() returns you TRUE. This is strange. Then I need example project from you. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From erichg at mcmm.com Wed Jan 7 20:18:30 2004 From: erichg at mcmm.com (Erich Geiersberger) Date: Wed Jan 7 13:18:47 2004 Subject: AW: [V4MD] V4MD Xtra vs. V4MD_client Xtra In-Reply-To: References: Message-ID: >It looks you will need preapre SEVERAL applications for your users: > >MAIN APPS > >1 app -- use V4MD > >2 app -- use V4MD Client > > >-------------------- >HELPER APPS: > >3 App that use V4MD, can merge several V4MD applications. > >4 app use V12 Xtra AND V4MD to extract V12 data into Valentina db files. I think two should be enough. One for gathering all the info, copying the data together as needed and installing and one for importing all information into the server DB later. But this makes six already (Mac, Mac Carbon, PC). Whats wrong with the way I tried it? No way for openxlib? Erich From forgete at cafederic.com Wed Jan 7 14:20:53 2004 From: forgete at cafederic.com (Eric Forget) Date: Wed Jan 7 13:23:21 2004 Subject: [VSDK] VDK_Cursor::Update() broken? In-Reply-To: Message-ID: >> 1) All the fields of the current record, as seen by the UI. >> >> 2) The list of all the records (RecID + Name) that meet some criteria (e.g. >> Name filter, label = 1) >> >> 3) I have a few "view as" like view as Label. So, the third is all the >> distinct name for the current view as. I've been able to pin point the problem following Florian tip. I had one case where cursor 3) was doing a join which seems to lock cursor 1) even if I passed the flag kNoLock. Maybe there is a case where you do not check for the flag and always lock? Eric ___________________________________________________________________ Eric Forget Cafederic ForgetE@cafederic.com Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684> From sunshine at public.kherson.ua Wed Jan 7 21:25:01 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Jan 7 13:24:54 2004 Subject: AW: [V4MD] V4MD Xtra vs. V4MD_client Xtra In-Reply-To: Message-ID: on 1/7/04 9:18 PM, Erich Geiersberger at erichg@mcmm.com wrote: >> It looks you will need preapre SEVERAL applications for your users: >> >> MAIN APPS >> >> 1 app -- use V4MD >> >> 2 app -- use V4MD Client >> >> >> -------------------- >> HELPER APPS: >> >> 3 App that use V4MD, can merge several V4MD applications. >> >> 4 app use V12 Xtra AND V4MD to extract V12 data into Valentina db files. > > I think two should be enough. > One for gathering all the info, copying the data together as needed > and installing and one for importing all information into the server > DB later. But this makes six already (Mac, Mac Carbon, PC). > > Whats wrong with the way I tried it? > No way for openxlib? I don't know nothing about openxlib. This is function of Director? An it must load/unload Xtras ?! Then all questions to Macromedia. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From mark at majico.com Wed Jan 7 11:25:52 2004 From: mark at majico.com (Mark Maslowski) Date: Wed Jan 7 13:26:00 2004 Subject: Adding Records at Start In-Reply-To: Message-ID: Can someone explain why my SQL query is not working properly? SELECT DISTINCT level_1 FROM resources ORDER BY ID should result in a unique list sorted by ID number. Instead I get a list of everything in a strange order - ["Screenshots Library", "Offline Materials - PDFs", "Websites", "PowerPoints", "Videos", "Screenshots Library", "Screenshots Library", "Screenshots Library", "Screenshots Library", "Screenshots Library", "Screenshots Library", "Screenshots Library", "Pictures Library"] which when looked at by ID number is [1, 10, 11, 12, 13, 2, 3, 4, 5, 6, 7, 8, 9] Personally, I've always thought that 2 came before 10 but I might have been mistaken. Any idea what I'm doing wrong? - M *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* Mark D. Maslowski Partner/Designer/Programmer MAJICo - The Mark and June Interactive Company Serving Northern California - from Napa to Monterey! www.majico.com 831-336-3343 voice 831-336-3353 fax *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* From sunshine at public.kherson.ua Wed Jan 7 21:26:30 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Jan 7 13:26:34 2004 Subject: [VSDK] VDK_Cursor::Update() broken? In-Reply-To: Message-ID: on 1/7/04 9:20 PM, Eric Forget at forgete@cafederic.com wrote: >>> 1) All the fields of the current record, as seen by the UI. >>> >>> 2) The list of all the records (RecID + Name) that meet some criteria (e.g. >>> Name filter, label = 1) >>> >>> 3) I have a few "view as" like view as Label. So, the third is all the >>> distinct name for the current view as. > > I've been able to pin point the problem following Florian tip. I had one > case where cursor 3) was doing a join which seems to lock cursor 1) even if > I passed the flag kNoLock. Maybe there is a case where you do not check for > the flag and always lock? Hmm, If this is true then it looks to be 2 problem 1) JOIN lock ignore NoLock flag 2) your first cursor see locks ignoring NoLock flag. I doubt on this. I will look into code now. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From cindy at kowhaiprogramming.com Thu Jan 8 08:31:54 2004 From: cindy at kowhaiprogramming.com (Cindy Brown) Date: Wed Jan 7 13:33:05 2004 Subject: Adding Records at Start In-Reply-To: Message-ID: Hi Mark, Is your ID field a string or a number? If it is sorted as you write then it is sorting in alpha order which will sort all records beginning with 1 (including 10, 11, etc.), then 2. To get it to sort in numerical order the field needs to be set as short or another numerical field. Hope that helps. Cindy > Can someone explain why my SQL query is not working properly? > > SELECT DISTINCT level_1 FROM resources ORDER BY ID > should result in a unique list sorted by ID number. Instead I get a list of > everything in a strange order - > > ["Screenshots Library", "Offline Materials - PDFs", "Websites", > "PowerPoints", "Videos", "Screenshots Library", "Screenshots Library", > "Screenshots Library", "Screenshots Library", "Screenshots Library", > "Screenshots Library", "Screenshots Library", "Pictures Library"] > > which when looked at by ID number is > [1, 10, 11, 12, 13, 2, 3, 4, 5, 6, 7, 8, 9] > > Personally, I've always thought that 2 came before 10 but I might have been > mistaken. > > Any idea what I'm doing wrong? > > - M > > > > *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* > > Mark D. Maslowski > Partner/Designer/Programmer > > MAJICo - The Mark and June Interactive Company > Serving Northern California - from Napa to Monterey! > www.majico.com > > 831-336-3343 voice 831-336-3353 fax > > *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* > > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > > -- Cindy Brown Programmer SchoolMaster Kowhai Programming Systems PO Box 198, Invercargill 81 Marama Avenue South, 9RD Invercargill Phone (03) 213 1243 Fax (03) 213 1248 Mobile (021) 354 930 From martin.kloss at gmx.de Wed Jan 7 20:36:56 2004 From: martin.kloss at gmx.de (Martin Kloss) Date: Wed Jan 7 13:37:07 2004 Subject: AW: [V4MD] V4MD Xtra vs. V4MD_client Xtra In-Reply-To: References: Message-ID: <6.0.1.1.2.20040107203402.01d61298@pop.gmx.de> At 20:25 07.01.2004, you wrote: > > Whats wrong with the way I tried it? > > No way for openxlib? > >I don't know nothing about openxlib. > >This is function of Director? >An it must load/unload Xtras ?! Yes, openXlib() loads Xtras manually, usually this is not needed when Xtras are in an "Xtras" Folder or included in the application, they are automatically loaded. Martin. From mark at majico.com Wed Jan 7 11:41:40 2004 From: mark at majico.com (Mark Maslowski) Date: Wed Jan 7 13:41:48 2004 Subject: Adding Records at Start In-Reply-To: Message-ID: > Is your ID field a string or a number? If it is sorted as you write then it > is sorting in alpha order which will sort all records beginning with 1 > (including 10, 11, etc.), then 2. To get it to sort in numerical order the > field needs to be set as short or another numerical field. > > Hope that helps. Yes, that did help the ordering. However, I still need to find out why the DISTINCT is not working with an ORDER BY in the SQL query. Thanks. - Mark *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* Mark D. Maslowski Partner/Designer/Programmer MAJICo - The Mark and June Interactive Company Serving Northern California - from Napa to Monterey! www.majico.com 831-336-3343 voice 831-336-3353 fax *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* From erichg at mcmm.com Wed Jan 7 20:48:24 2004 From: erichg at mcmm.com (Erich Geiersberger) Date: Wed Jan 7 13:58:13 2004 Subject: AW: [V4MD] V4MD Xtra vs. V4MD_client Xtra In-Reply-To: References: Message-ID: >Erich, > >Right now we DO NOT provide ability of using BOTH LOCAL and CLIENT Extras >inside of single projector. > >Although Director + V4MD is probably the only IDE now that allow keep both >Xtra in the plugin folder. But I think we still get confusing because they >have the same API. > >We will try later resolve this. >Probably in such way: > > > + Valentina_Local.dll > V4MD.Xtra > + Valentina_Client.dll > > >So we get single Xtra, and single API, and need just say what database we >want to get LOCAL or remote. And I think this way can work in 3 ways > only local > only client > both Not quite clear yet. I do not need both xtras at the same time. Besides adding Xtras to a Projector or keeping them in an Xtras folder, Director offers a third option of opening an Xtra from ANY folder and closing it again after use. So all I would want to to is: Start my director app WITHOUT ANY Valentina Xtra in Xtras folder or projector. I have two other folders "master" and "client" containing the V4MD Xtra and the V4MD_client Xtra. When I need the master Xtra, I just open it with openxlib(the moviepath & "master" & gsep & "V4MD.X32") -> This works. When I don't need it any more I want to close it with closexlib(the moviepath & "master" & gsep & "V4MD.X32") This will of course only work, if there are no current instances of the Xtra any more. -> That's what doesn't work. It seems the Xtra is still in use after destroying all of its instances. Next it should be possible to open the other Xtra by calling openxlib(the moviepath & "client" & gsep & "V4MD_Client.X32") etc. You see? If that's not possible for some reason I need to go the other way. Erich From sunshine at public.kherson.ua Wed Jan 7 22:30:17 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Jan 7 14:30:29 2004 Subject: Adding Records at Start In-Reply-To: Message-ID: on 1/7/04 9:41 PM, Mark Maslowski at mark@majico.com wrote: >> Is your ID field a string or a number? If it is sorted as you write then it >> is sorting in alpha order which will sort all records beginning with 1 >> (including 10, 11, etc.), then 2. To get it to sort in numerical order the >> field needs to be set as short or another numerical field. >> >> Hope that helps. > > > Yes, that did help the ordering. However, I still need to find out why the > DISTINCT is not working with an ORDER BY in the SQL query. So it was STRING? And when you have change it to number it give expected order? Good. Try simply SELECT DISTINCT level_1 FROM resources I afraid I could loose this combination so we have bug -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Wed Jan 7 22:32:19 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Jan 7 14:32:10 2004 Subject: AW: [V4MD] V4MD Xtra vs. V4MD_client Xtra In-Reply-To: <6.0.1.1.2.20040107203402.01d61298@pop.gmx.de> Message-ID: on 1/7/04 9:36 PM, Martin Kloss at martin.kloss@gmx.de wrote: > At 20:25 07.01.2004, you wrote: >>> Whats wrong with the way I tried it? >>> No way for openxlib? >> >> I don't know nothing about openxlib. >> >> This is function of Director? >> An it must load/unload Xtras ?! > > Yes, openXlib() loads Xtras manually, usually this is not > needed when Xtras are in an "Xtras" Folder or included > in the application, they are automatically loaded. Thank you, Martin. Erich, so you say you cannot unload Xtra, and still get that it is in use? Then make sure that (from above Martin paragraph) 1) Xtras are NOT included into Xtra folder 2) they are NOT included into application. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From fb at memedia.de Wed Jan 7 21:32:19 2004 From: fb at memedia.de (Florian Bogeschdorfer) Date: Wed Jan 7 14:32:23 2004 Subject: AW: AW: [V4MD] V4MD Xtra vs. V4MD_client Xtra In-Reply-To: Message-ID: So Ruslan, the problem seems to be that the xtra instance is not destroyed properly. This maybe playes together with the fact that when you make around with new() close, shutdown, reopen etc several times without quitting Director (Authoring) it is quite often that valentina crashes Director. On the other hand I have heard that openXlib() is not really stable, is it? Best regards, Florian > -----Urspr?ngliche Nachricht----- > Von: valentina-bounces@lists.macserve.net > [mailto:valentina-bounces@lists.macserve.net] Im Auftrag von > Erich Geiersberger > Gesendet: Mittwoch, 7. Januar 2004 20:48 > An: Valentina Developers > Betreff: Re: AW: [V4MD] V4MD Xtra vs. V4MD_client Xtra > > >Erich, > > > >Right now we DO NOT provide ability of using BOTH LOCAL and CLIENT > >Extras inside of single projector. > > > >Although Director + V4MD is probably the only IDE now that > allow keep > >both Xtra in the plugin folder. But I think we still get confusing > >because they have the same API. > > > >We will try later resolve this. > >Probably in such way: > > > > > > + Valentina_Local.dll > > V4MD.Xtra > > + Valentina_Client.dll > > > > > >So we get single Xtra, and single API, and need just say > what database > >we want to get LOCAL or remote. And I think this way can > work in 3 ways > > only local > > only client > > both > > > Not quite clear yet. > I do not need both xtras at the same time. > > Besides adding Xtras to a Projector or keeping them in an > Xtras folder, Director offers a third option of opening an > Xtra from ANY folder and closing it again after use. > > So all I would want to to is: > Start my director app WITHOUT ANY Valentina Xtra in Xtras > folder or projector. > I have two other folders "master" and "client" containing the > V4MD Xtra and the V4MD_client Xtra. > When I need the master Xtra, I just open it with openxlib(the > moviepath & "master" & gsep & "V4MD.X32") > -> This works. > > When I don't need it any more I want to close it with > closexlib(the moviepath & "master" & gsep & "V4MD.X32") This > will of course only work, if there are no current instances > of the Xtra any more. > -> That's what doesn't work. It seems the Xtra is still in use after > destroying all of its instances. > > Next it should be possible to open the other Xtra by calling > openxlib(the moviepath & "client" & gsep & "V4MD_Client.X32") etc. > > You see? > > If that's not possible for some reason I need to go the other way. > > Erich > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina From sunshine at public.kherson.ua Wed Jan 7 22:37:08 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Jan 7 14:37:11 2004 Subject: AW: [V4MD] V4MD Xtra vs. V4MD_client Xtra In-Reply-To: Message-ID: on 1/7/04 9:48 PM, Erich Geiersberger at erichg@mcmm.com wrote: > I do not need both xtras at the same time. > > Besides adding Xtras to a Projector or keeping them in an Xtras > folder, Director offers a third option of opening an Xtra from ANY > folder and closing it again after use. I see. > So all I would want to to is: > Start my director app WITHOUT ANY Valentina Xtra in Xtras folder or projector. > I have two other folders "master" and "client" containing the V4MD > Xtra and the V4MD_client Xtra. > When I need the master Xtra, I just open it with openxlib(the > moviepath & "master" & gsep & "V4MD.X32") > -> This works. > When I don't need it any more I want to close it with closexlib(the > moviepath & "master" & gsep & "V4MD.X32") > This will of course only work, if there are no current instances of > the Xtra any more. > -> That's what doesn't work. It seems the Xtra is still in use after > destroying all of its instances. Have you made ValentinaShutDown() ? > Next it should be possible to open the other Xtra by calling > openxlib(the moviepath & "client" & gsep & "V4MD_Client.X32") etc. > > You see? > If that's not possible for some reason I need to go the other way. I see, Erich. GREAT WAY !!! I love Director. :-) So we need find reason, when you cannot unload V4MD. Make sure that you have -- close all dbs -- set all cursors, and db to VOID -- call Valentina ShutDown If this not help, I think you must be able quite simply modify Example1 of V4MD to THIS way and sent to me. I will try debug what keep V4MD from unload. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From mark at majico.com Wed Jan 7 12:39:36 2004 From: mark at majico.com (Mark Maslowski) Date: Wed Jan 7 14:39:53 2004 Subject: Adding Records at Start In-Reply-To: Message-ID: > Try simply > > SELECT DISTINCT level_1 FROM resources Well, this is what I had originally and it works, However, since suddenly I cannot count on the order of the data being stored in the database, I needed to add, as many have suggested, an ID field. Of course, having an ID field doesn't do any good at all if I CAN'T USE IT TO SORT! Grrrrrrrr! - Mark *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* Mark D. Maslowski Partner/Designer/Programmer MAJICo - The Mark and June Interactive Company Serving Northern California - from Napa to Monterey! www.majico.com 831-336-3343 voice 831-336-3353 fax *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* From erichg at mcmm.com Wed Jan 7 22:21:22 2004 From: erichg at mcmm.com (Erich Geiersberger) Date: Wed Jan 7 15:21:38 2004 Subject: AW: [V4MD] V4MD Xtra vs. V4MD_client Xtra In-Reply-To: References: Message-ID: > > -> That's what doesn't work. It seems the Xtra is still in use after > > destroying all of its instances. > >Have you made ValentinaShutDown() ? Yes. > > > Next it should be possible to open the other Xtra by calling > > openxlib(the moviepath & "client" & gsep & "V4MD_Client.X32") etc. > > > > You see? > > If that's not possible for some reason I need to go the other way. > >I see, Erich. > >GREAT WAY !!! I love Director. :-) > > >So we need find reason, when you cannot unload V4MD. > >Make sure that you have > >-- close all dbs >-- set all cursors, and db to VOID >-- call Valentina ShutDown Hmm, I have set them to 0. Could this be the reason? > >If this not help, I think you must be able quite simply modify Example1 of >V4MD to THIS way and sent to me. I will try debug what keep V4MD from >unload. Thanks, will take som time. I'll send it. Erich From sunshine at public.kherson.ua Wed Jan 7 23:32:04 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Jan 7 15:31:56 2004 Subject: Adding Records at Start In-Reply-To: Message-ID: on 1/7/04 10:39 PM, Mark Maslowski at mark@majico.com wrote: >> Try simply >> >> SELECT DISTINCT level_1 FROM resources > > Well, this is what I had originally and it works, However, since suddenly I > cannot count on the order of the data being stored in the database, I needed > to add, as many have suggested, an ID field. Of course, having an ID field > doesn't do any good at all if I CAN'T USE IT TO SORT! Hmm, But you do something strange then. You have 10 records with the same value in level_1 You want DISTINCT them to produce just ONE record. Then it is not clear way to use 10 indexes in that 10 records. You cannot guess which one index will be choosed. You see? ----------------- You have told you want make this cursor to produce menu? This menu contains strings from level_1 ? Then why it must be sorted not in alphabetical order of level_1, But in order of index ??? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Wed Jan 7 23:34:39 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Jan 7 15:34:31 2004 Subject: AW: [V4MD] V4MD Xtra vs. V4MD_client Xtra In-Reply-To: Message-ID: on 1/7/04 11:21 PM, Erich Geiersberger at erichg@mcmm.com wrote: >>> -> That's what doesn't work. It seems the Xtra is still in use after >>> destroying all of its instances. >> >> Have you made ValentinaShutDown() ? > > Yes. It is pity :-) >> Make sure that you have >> >> -- close all dbs >> -- set all cursors, and db to VOID >> -- call Valentina ShutDown > > > Hmm, I have set them to 0. > Could this be the reason? Hard to say, Cursors it is always good idea to VOID, because you will unlock records. Director have own garbage collector, so may happens it still keep some deleted object in RAM, and this prevent DLL from unload. As C++ developer, I prefer always free objects explicitly. >> If this not help, I think you must be able quite simply modify Example1 of >> V4MD to THIS way and sent to me. I will try debug what keep V4MD from >> unload. > > Thanks, will take som time. I'll send it. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From cindy at kowhaiprogramming.com Thu Jan 8 10:52:40 2004 From: cindy at kowhaiprogramming.com (Cindy Brown) Date: Wed Jan 7 15:53:45 2004 Subject: Adding Records at Start In-Reply-To: Message-ID: Hi Mark, I think you have to include your sort field with your select so: SELECT DISTINCT level_1, ID FROM resources ORDER BY ID Hope that helps. Cindy >> Try simply >> >> SELECT DISTINCT level_1 FROM resources > > Well, this is what I had originally and it works, However, since suddenly I > cannot count on the order of the data being stored in the database, I needed > to add, as many have suggested, an ID field. Of course, having an ID field > doesn't do any good at all if I CAN'T USE IT TO SORT! > Cindy Brown Programmer SchoolMaster Kowhai Programming Systems PO Box 198, Invercargill 81 Marama Avenue South, 9RD Invercargill Phone (03) 213 1243 Fax (03) 213 1248 Mobile (021) 354 930 From lbutler at on.pelmorex.com Wed Jan 7 14:43:58 2004 From: lbutler at on.pelmorex.com (Lloyd Butler) Date: Wed Jan 7 16:05:46 2004 Subject: Adding Records at Start Message-ID: > SELECT DISTINCT level_1 FROM resources ORDER BY ID > should result in a unique list sorted by ID number. Instead I get a list of > everything in a strange order - > > ["Screenshots Library", "Offline Materials - PDFs", "Websites", > "PowerPoints", "Videos", "Screenshots Library", "Screenshots Library", > "Screenshots Library", "Screenshots Library", "Screenshots Library", > "Screenshots Library", "Screenshots Library", "Pictures Library"] > > which when looked at by ID number is > [1, 10, 11, 12, 13, 2, 3, 4, 5, 6, 7, 8, 9] Mark, You ID field looks to be text rather than number. As a text field (varchar, string), then it sorts this way. Change it to an number field (short, long) If you were looking to RecID, the internal hidden field then the cursor is ordered by it by default. Lloyd Butler Product and System Development Supervisor TWN Commercial Services From mark at majico.com Wed Jan 7 14:27:13 2004 From: mark at majico.com (Mark Maslowski) Date: Wed Jan 7 16:27:24 2004 Subject: Adding Records at Start In-Reply-To: Message-ID: > I think you have to include your sort field with your select so: > > SELECT DISTINCT level_1, ID FROM resources ORDER BY ID > > Hope that helps. Nope. The DISTINCT is just ignored, still leaving me multiples. Now, I could use a repeat loop and delete the duplicate entries, but I should be able to do this with the database query. Thanks anyway. - Mark *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* Mark D. Maslowski Partner/Designer/Programmer MAJICo - The Mark and June Interactive Company Serving Northern California - from Napa to Monterey! www.majico.com 831-336-3343 voice 831-336-3353 fax *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* From mark at majico.com Wed Jan 7 14:40:35 2004 From: mark at majico.com (Mark Maslowski) Date: Wed Jan 7 16:40:42 2004 Subject: Adding Records at Start In-Reply-To: Message-ID: > But you do something strange then. > > You have 10 records with the same value in level_1 > You want DISTINCT them to produce just ONE record. > > Then it is not clear way to use 10 indexes in that 10 records. > You cannot guess which one index will be choosed. > You see? Well, I'm usually doing something strange! What I am doing is building a menu tree, with little folders and files, out of the database. The folders are built from the entries in level_1. level_2 is the list of files that go into the folders. There might be several files that go into each folder, so their level_1 entry would be the same... folder1/file1, folder1/file2, folder1/file3, folder2/file1, folder2/file2, etc. So, the reason I need a unique list of level_1 is that I don't want to create a new and duplicate folder for each and every file. - Mark *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* Mark D. Maslowski Partner/Designer/Programmer MAJICo - The Mark and June Interactive Company Serving Northern California - from Napa to Monterey! www.majico.com 831-336-3343 voice 831-336-3353 fax *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* From rjb at rz.uni-potsdam.de Thu Jan 8 00:29:52 2004 From: rjb at rz.uni-potsdam.de (Robert Brenstein) Date: Wed Jan 7 17:36:54 2004 Subject: Adding Records at Start In-Reply-To: References: Message-ID: > > But you do something strange then. >> >> You have 10 records with the same value in level_1 >> You want DISTINCT them to produce just ONE record. >> >> Then it is not clear way to use 10 indexes in that 10 records. >> You cannot guess which one index will be choosed. >> You see? > >Well, I'm usually doing something strange! What I am doing is building a >menu tree, with little folders and files, out of the database. The folders >are built from the entries in level_1. level_2 is the list of files that go >into the folders. There might be several files that go into each folder, so >their level_1 entry would be the same... folder1/file1, folder1/file2, >folder1/file3, folder2/file1, folder2/file2, etc. So, the reason I need a >unique list of level_1 is that I don't want to create a new and duplicate >folder for each and every file. > >- Mark I don't see this so strange, but what Cindy pointed out might be truly your problem. And it would be sort of catch 22. Normally, sorting requires all sort fields to be included in select but in your case this clashes with distinct (actually kills it, since field pairs will be always unique). You may have to forgo the distinct and remove duplicates self or sort them self. Robert From cindy at kowhaiprogramming.com Thu Jan 8 12:48:10 2004 From: cindy at kowhaiprogramming.com (Cindy Brown) Date: Wed Jan 7 17:49:15 2004 Subject: Adding Records at Start In-Reply-To: Message-ID: What it looks like you need is to have all level_1 records with the same name to have the same ID. Level_1 Level_2 ID Horse Arab 2 Horse Thoroughbred 2 Fish Carp 1 Fish Goldfish 1 Fish Shark 1 Using SELECT DISTINCT Level_1 Order by ID Will sort this out into two records with Fish first followed by Horse. If you then want to sort Level_2 as well you would probably need to have a secondary sort ID. Hope that helps. Cindy >>> But you do something strange then. >>> >>> You have 10 records with the same value in level_1 >>> You want DISTINCT them to produce just ONE record. >>> >>> Then it is not clear way to use 10 indexes in that 10 records. >>> You cannot guess which one index will be choosed. >>> You see? >> >> Well, I'm usually doing something strange! What I am doing is building a >> menu tree, with little folders and files, out of the database. The folders >> are built from the entries in level_1. level_2 is the list of files that go >> into the folders. There might be several files that go into each folder, so >> their level_1 entry would be the same... folder1/file1, folder1/file2, >> folder1/file3, folder2/file1, folder2/file2, etc. So, the reason I need a >> unique list of level_1 is that I don't want to create a new and duplicate >> folder for each and every file. >> >> - Mark > > I don't see this so strange, but what Cindy pointed out might be > truly your problem. And it would be sort of catch 22. Normally, > sorting requires all sort fields to be included in select but in your > case this clashes with distinct (actually kills it, since field pairs > will be always unique). > > You may have to forgo the distinct and remove duplicates self or sort > them self. > > Robert > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > > -- Cindy Brown Programmer SchoolMaster Kowhai Programming Systems PO Box 198, Invercargill 81 Marama Avenue South, 9RD Invercargill Phone (03) 213 1243 Fax (03) 213 1248 Mobile (021) 354 930 From mark at majico.com Wed Jan 7 16:43:29 2004 From: mark at majico.com (Mark Maslowski) Date: Wed Jan 7 18:43:38 2004 Subject: Adding Records at Start In-Reply-To: Message-ID: > What it looks like you need is to have all level_1 records with the same > name to have the same ID. > > Level_1 Level_2 ID > Horse Arab 2 > Horse Thoroughbred 2 > Fish Carp 1 > Fish Goldfish 1 > Fish Shark 1 > > Using SELECT DISTINCT Level_1 Order by ID > > Will sort this out into two records with Fish first followed by Horse. > > If you then want to sort Level_2 as well you would probably need to have a > secondary sort ID. My, aren't we clever! ;) Yes, that seems to have worked. Thanks a million! - Mark *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* Mark D. Maslowski Partner/Designer/Programmer MAJICo - The Mark and June Interactive Company Serving Northern California - from Napa to Monterey! www.majico.com 831-336-3343 voice 831-336-3353 fax *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* From erichg at mcmm.com Thu Jan 8 01:43:48 2004 From: erichg at mcmm.com (Erich Geiersberger) Date: Wed Jan 7 18:44:13 2004 Subject: AW: [V4MD] V4MD Xtra vs. V4MD_client Xtra In-Reply-To: References: Message-ID: Hi Ruslan, I found it. There was a valentina error while trying to write a string to a boolean field. While the whole program will run without any problem, it seems that the Xtra can't be closed any more after such an error. So: If there is absolutely no error during read/write operations, the Xtras can be loaded / unloaded with openxlib() and closexlib() If you want to, I can send you a demo tomorrow. Erich From forgete at cafederic.com Wed Jan 7 22:01:32 2004 From: forgete at cafederic.com (Eric Forget) Date: Wed Jan 7 21:03:19 2004 Subject: [VSDK] VDK_Cursor::Update() broken? In-Reply-To: Message-ID: Hi Ruslan, On a related problem I found that if I execute: myDB->SqlExecute("DELETE FROM Table2"); my->SqlExecute("INSERT INTO Table2 ( Code ) SELECT DISTINCT Field1 FROM Table1 WHERE Field1 <> ''"); All the field of Table1 are now locked until I quit the application. I don't see why they need to be locked. As far as I understand, this is a one time task and no cursor needs to be preserved? ?ric ___________________________________________________________________ Eric Forget Cafederic ForgetE@cafederic.com Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684> From lbutler at on.pelmorex.com Wed Jan 7 14:43:58 2004 From: lbutler at on.pelmorex.com (Lloyd Butler) Date: Wed Jan 7 22:53:14 2004 Subject: Adding Records at Start Message-ID: > SELECT DISTINCT level_1 FROM resources ORDER BY ID > should result in a unique list sorted by ID number. Instead I get a list of > everything in a strange order - > > ["Screenshots Library", "Offline Materials - PDFs", "Websites", > "PowerPoints", "Videos", "Screenshots Library", "Screenshots Library", > "Screenshots Library", "Screenshots Library", "Screenshots Library", > "Screenshots Library", "Screenshots Library", "Pictures Library"] > > which when looked at by ID number is > [1, 10, 11, 12, 13, 2, 3, 4, 5, 6, 7, 8, 9] Mark, You ID field looks to be text rather than number. As a text field (varchar, string), then it sorts this way. Change it to an number field (short, long) If you were looking to RecID, the internal hidden field then the cursor is ordered by it by default. Lloyd Butler Product and System Development Supervisor TWN Commercial Services From dave at Parizek.com Wed Jan 7 21:54:05 2004 From: dave at Parizek.com (Dave Parizek) Date: Wed Jan 7 22:54:11 2004 Subject: [OFF] Novella called Valentina, great sci-fi In-Reply-To: References: Message-ID: Just read a really good sci-fi novella called "Valentina" by Joseph H. Delaney and Marc Stiegler. It was in a May 1984 issue of Analog, if anyone can find it. About hacking and artificial intelligence, with lots of good twists. Ruslan email me your snail mail address and I will ship it to you, just for kicks... --Dave -- _______________________________________________ From sunshine at public.kherson.ua Thu Jan 8 09:48:42 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jan 8 01:48:37 2004 Subject: AW: [V4MD] V4MD Xtra vs. V4MD_client Xtra In-Reply-To: Message-ID: on 1/8/04 2:43 AM, Erich Geiersberger at erichg@mcmm.com wrote: > Hi Ruslan, > > I found it. > There was a valentina error while trying to write a string to a boolean field. > > While the whole program will run without any problem, it seems that > the Xtra can't be closed any more after such an error. > So: If there is absolutely no error during read/write operations, the > Xtras can be loaded / unloaded with openxlib() and closexlib() > > If you want to, I can send you a demo tomorrow. Yes of course! -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Thu Jan 8 09:49:41 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jan 8 01:49:33 2004 Subject: [OFF] Novella called Valentina, great sci-fi In-Reply-To: Message-ID: on 1/8/04 6:54 AM, Dave Parizek at dave@Parizek.com wrote: > Just read a really good sci-fi novella called "Valentina" by Joseph > H. Delaney and Marc Stiegler. > > It was in a May 1984 issue of Analog, if anyone can find it. > > About hacking and artificial intelligence, with lots of good twists. > > Ruslan email me your snail mail address and I will ship it to you, > just for kicks... Hi Dave, sunshine@public.kherson.ua -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Thu Jan 8 09:54:04 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jan 8 01:54:04 2004 Subject: [VSDK] VDK_Cursor::Update() broken? In-Reply-To: Message-ID: on 1/8/04 5:01 AM, Eric Forget at forgete@cafederic.com wrote: Hi Eric, > On a related problem I found that if I execute: > > myDB->SqlExecute("DELETE FROM Table2"); > my->SqlExecute("INSERT INTO Table2 ( Code ) SELECT DISTINCT Field1 FROM > Table1 WHERE Field1 <> ''"); > > All the field of Table1 are now locked until I quit the application. I don't > see why they need to be locked. As far as I understand, this is a one time > task and no cursor needs to be preserved? Aha, 1) INSERT in this case use self cursor. and probably this cursor set ReadLocks. May be I have not delete this cursor... 2) what means ALL FIELDS of T1 are locked? you mean records? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Thu Jan 8 09:59:25 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jan 8 01:59:17 2004 Subject: Adding Records at Start In-Reply-To: Message-ID: on 1/8/04 2:43 AM, Mark Maslowski at mark@majico.com wrote: >> What it looks like you need is to have all level_1 records with the same >> name to have the same ID. >> >> Level_1 Level_2 ID >> Horse Arab 2 >> Horse Thoroughbred 2 >> Fish Carp 1 >> Fish Goldfish 1 >> Fish Shark 1 >> >> Using SELECT DISTINCT Level_1 Order by ID >> >> Will sort this out into two records with Fish first followed by Horse. >> >> If you then want to sort Level_2 as well you would probably need to have a >> secondary sort ID. > > My, aren't we clever! ;) Yes, that seems to have worked. > > Thanks a million! It is good that it works now. But Mark, I want want you that you have NOT GOOD db structure! As you see YOU HAVE DUPLICATES. This is EXACT SIGN that you have bad design yet. You can wish to split data into several tables, Or may be use Table with self - recursion because in your task you can have any number of levels. In IDEAL, you must not have DUPLICATE data. Think about this. You can read in any RDBMS book rules of table normalization. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From cindy at kowhaiprogramming.com Thu Jan 8 21:05:42 2004 From: cindy at kowhaiprogramming.com (Cindy Brown) Date: Thu Jan 8 02:06:45 2004 Subject: Adding Records at Start In-Reply-To: Message-ID: Hi Ruslan, I don't think in this case the structure is bad, it is just that Mark wants to order it in a certain way which makes it a little more difficult. I could have a student database with a number of students in similar families with the same last name which would mean there would be duplicates, but I wouldn't then create a second database to just hold the last names. It would definitely be overkill and a lot harder to work with. In my case, DISTINCT would probably work because I would order in last name order which would be fine. In Mark's case, he wants a different order to alphabetical so he needs to set up a separate order system. The database structure itself looks fine, at least to me. All the best. Cindy > But Mark, > > I want want you that you have NOT GOOD db structure! > > As you see YOU HAVE DUPLICATES. > This is EXACT SIGN that you have bad design yet. > > You can wish to split data into several tables, > Or may be use Table with self - recursion because in your task you can have > any number of levels. > > In IDEAL, you must not have DUPLICATE data. > > Think about this. > You can read in any RDBMS book rules of table normalization. -- Cindy Brown Programmer SchoolMaster Kowhai Programming Systems PO Box 198, Invercargill 81 Marama Avenue South, 9RD Invercargill Phone (03) 213 1243 Fax (03) 213 1248 Mobile (021) 354 930 From mark at majico.com Thu Jan 8 00:19:22 2004 From: mark at majico.com (Mark Maslowski) Date: Thu Jan 8 02:19:31 2004 Subject: Adding Records at Start In-Reply-To: Message-ID: > I want want you that you have NOT GOOD db structure! > > As you see YOU HAVE DUPLICATES. > This is EXACT SIGN that you have bad design yet. > > You can wish to split data into several tables, > Or may be use Table with self - recursion because in your task you can have > any number of levels. > > In IDEAL, you must not have DUPLICATE data. > > Think about this. > You can read in any RDBMS book rules of table normalization. Thanks Ruslan. I realize that this database should be structured differently but there are various reasons why it's not... it was originally an Access project and I needed to keep the structure similar and not change much of the code. The client is also constantly changing the data for me (or to spite me) and they are using an Excel spreadsheet for their work. I need to be able to simply and quickly import their format straight into the db. I'm not doing anything complicated with the db data so this method seems to fit my needs for now. One of these days I'll have the time to explore the proper ways to design and program a database! - Mark *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* Mark D. Maslowski Partner/Designer/Programmer MAJICo - The Mark and June Interactive Company Serving Northern California - from Napa to Monterey! www.majico.com 831-336-3343 voice 831-336-3353 fax *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* From sunshine at public.kherson.ua Thu Jan 8 10:20:29 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jan 8 02:23:03 2004 Subject: Adding Records at Start In-Reply-To: Message-ID: on 1/8/04 10:05 AM, Cindy Brown at cindy@kowhaiprogramming.com wrote: Hi Cindy, > I don't think in this case the structure is bad, it is just that Mark wants > to order it in a certain way which makes it a little more difficult. I could > have a student database with a number of students in similar families with > the same last name which would mean there would be duplicates, but I > wouldn't then create a second database to just hold the last names. Not agree. Look, in your example the DIFFENRENT students have the same last name. Students, are DIFFERENT real world objects. So here there is NO duplication of data. But If you will do table PERson/Phones as Ruslan Zasukhin 1111 Ruslan Zasukhin 2222 Ruslan Zasukhin 3333 Ruslan Zasukhin 4444 You get duplicated because you repeat data of the same real world object in few records. This is bad. It is bad for example, because IF I need change one letter Ruslan -> Rulan It is very hard do this. > It would > definitely be overkill and a lot harder to work with. In my case, DISTINCT > would probably work because I would order in last name order which would be > fine. In Mark's case, he wants a different order to alphabetical so he needs > to set up a separate order system. The database structure itself looks fine, > at least to me. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From cindy at kowhaiprogramming.com Thu Jan 8 21:30:38 2004 From: cindy at kowhaiprogramming.com (Cindy Brown) Date: Thu Jan 8 02:31:41 2004 Subject: Adding Records at Start In-Reply-To: Message-ID: Hi Ruslan I see your point. >> > Not agree. > > Look, in your example the DIFFENRENT students have the same last name. > Students, are DIFFERENT real world objects. > So here there is NO duplication of data. > > But If you will do table PERson/Phones as > > Ruslan Zasukhin 1111 > Ruslan Zasukhin 2222 > Ruslan Zasukhin 3333 > Ruslan Zasukhin 4444 > > You get duplicated because you repeat data of the same real world object in > few records. This is bad. > > It is bad for example, because IF I need change one letter Ruslan -> Rulan > It is very hard do this. Cindy From sunshine at public.kherson.ua Thu Jan 8 11:02:55 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jan 8 03:09:19 2004 Subject: SQL Select overload? In-Reply-To: Message-ID: on 1/8/04 6:34 AM, Tim Davis at timdavis@amug.org wrote: > Hi Ruslan, > > I created a query with a join between 2 tables and over 2 dozen > fields. All the fields came back, but the values of the parent table > did not. When I split and shortened the SQL select statement all the > data came back fine. See actual examples below. Is this an overloaded > query due to the length, or am I retrieving the parent fields wrong? Hi Tim, IF you use SUM() you already cannot use normal fields in SELECT. This is standard rule. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From martin.kloss at gmx.de Thu Jan 8 10:27:31 2004 From: martin.kloss at gmx.de (Martin Kloss) Date: Thu Jan 8 03:27:41 2004 Subject: AW: [V4MD] V4MD Xtra vs. V4MD_client Xtra In-Reply-To: References: Message-ID: <6.0.1.1.2.20040108102609.01d4fba8@pop.gmx.de> At 22:34 07.01.2004, you wrote: > >> -- close all dbs > >> -- set all cursors, and db to VOID > >> -- call Valentina ShutDown > > > > > > Hmm, I have set them to 0. > > Could this be the reason? > >Hard to say, > >Cursors it is always good idea to VOID, because you will unlock records. > >Director have own garbage collector, so may happens it still keep some >deleted object in RAM, and this prevent DLL from unload. For Director it makes no difference if you set the instance to 0 or VOID, the garbage collection will take care of disposing the instance in any case. So this can not be part of the problem. Martin. From andy at foxwerk.de Thu Jan 8 10:45:57 2004 From: andy at foxwerk.de (Andy Fuchs) Date: Thu Jan 8 03:46:03 2004 Subject: AW: [V4MD] V4MD Xtra vs. V4MD_client Xtra In-Reply-To: <6.0.1.1.2.20040108102609.01d4fba8@pop.gmx.de> Message-ID: at 08.01.2004 10:27 Uhr, Martin Kloss wrote: > For Director it makes no difference if you set the instance to 0 or VOID, The only difference is, that if you set a global to VOID, it will be removed from global scope. If you set it to 0 it will remain there with a value of 0. -- -- Andy Fuchs -- silent movie media -- mailto:andy@foxwerk.de -- http://www.silent-movie-media.com ------------------------------------ Verkaufe: From sunshine at public.kherson.ua Thu Jan 8 11:49:02 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jan 8 03:48:55 2004 Subject: AW: [V4MD] V4MD Xtra vs. V4MD_client Xtra In-Reply-To: <6.0.1.1.2.20040108102609.01d4fba8@pop.gmx.de> Message-ID: on 1/8/04 11:27 AM, Martin Kloss at martin.kloss@gmx.de wrote: >> Cursors it is always good idea to VOID, because you will unlock records. >> >> Director have own garbage collector, so may happens it still keep some >> deleted object in RAM, and this prevent DLL from unload. > > For Director it makes no difference if you set the instance to 0 or VOID, > the garbage collection will take care of disposing the instance in any case. > So this can not be part of the problem. Martin, Assume you do next: On func curs1 = select * from T ... // here curs1 must die to unlock records for next cursor. curs1 = VOID curs2 = select * from T WHERE ... // here we can skip explicit deletion, because at the end of // function cursor will be destroyed self by director. end Of course usually developers do not create 2 cursors in the same function. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From martin.kloss at gmx.de Thu Jan 8 11:05:31 2004 From: martin.kloss at gmx.de (Martin Kloss) Date: Thu Jan 8 04:05:40 2004 Subject: AW: [V4MD] V4MD Xtra vs. V4MD_client Xtra In-Reply-To: References: <6.0.1.1.2.20040108102609.01d4fba8@pop.gmx.de> Message-ID: <6.0.1.1.2.20040108104723.01cbe4c0@pop.gmx.de> At 10:45 08.01.2004, you wrote: > > For Director it makes no difference if you set the instance to 0 or VOID, > >The only difference is, that if you set a global to VOID, it will be removed >from global scope. If you set it to 0 it will remain there with a value of 0. true, but for instances of Xtras or Lingo objects they will get disposed nonetheless, so both ways actually have the same result as far as object disposal goes :-) Martin. From martin.kloss at gmx.de Thu Jan 8 11:07:40 2004 From: martin.kloss at gmx.de (Martin Kloss) Date: Thu Jan 8 04:07:48 2004 Subject: AW: [V4MD] V4MD Xtra vs. V4MD_client Xtra In-Reply-To: References: <6.0.1.1.2.20040108102609.01d4fba8@pop.gmx.de> Message-ID: <6.0.1.1.2.20040108110622.01cbcb40@pop.gmx.de> At 10:49 08.01.2004, you wrote: > // here curs1 must die to unlock records for next cursor. > curs1 = VOID > > curs2 = select * from T WHERE ... > > // here we can skip explicit deletion, because at the end of > // function cursor will be destroyed self by director. >end I'm not sure what you're getting at. You could set the local variable curs1 = 0 or VOID, with the same result. At the end of the function both vars are destroyed anyway, if they're local. Martin. From sunshine at public.kherson.ua Thu Jan 8 12:10:28 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jan 8 04:10:34 2004 Subject: AW: [V4MD] V4MD Xtra vs. V4MD_client Xtra In-Reply-To: <6.0.1.1.2.20040108110622.01cbcb40@pop.gmx.de> Message-ID: on 1/8/04 12:07 PM, Martin Kloss at martin.kloss@gmx.de wrote: > At 10:49 08.01.2004, you wrote: >> // here curs1 must die to unlock records for next cursor. >> curs1 = VOID >> >> curs2 = select * from T WHERE ... >> >> // here we can skip explicit deletion, because at the end of >> // function cursor will be destroyed self by director. >> end > > I'm not sure what you're getting at. > You could set the local variable curs1 = 0 or VOID, > with the same result. At the end of the function both > vars are destroyed anyway, if they're local. Yes, I agree that we can set VOID or ZERO. Point is that exists cases when we MUST DO this EXPLICITLY. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From fb at memedia.de Thu Jan 8 11:16:14 2004 From: fb at memedia.de (Florian Bogeschdorfer) Date: Thu Jan 8 04:16:16 2004 Subject: AW: AW: [V4MD] V4MD Xtra vs. V4MD_client Xtra In-Reply-To: Message-ID: No I wonder what will happen to local cursors (not stored in a global). Shouldn't they be destroyed anyway? At least this is my experience. Florian From sunshine at public.kherson.ua Thu Jan 8 12:20:18 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jan 8 04:20:11 2004 Subject: AW: AW: [V4MD] V4MD Xtra vs. V4MD_client Xtra In-Reply-To: Message-ID: on 1/8/04 12:16 PM, Florian Bogeschdorfer at fb@memedia.de wrote: > No I wonder what will happen to local cursors (not stored in a global). > Shouldn't they be destroyed anyway? At least this is my experience. No Florian, They will be destroyed automatically at the end of function -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From martin.kloss at gmx.de Thu Jan 8 11:26:03 2004 From: martin.kloss at gmx.de (Martin Kloss) Date: Thu Jan 8 04:26:17 2004 Subject: AW: [V4MD] V4MD Xtra vs. V4MD_client Xtra In-Reply-To: References: <6.0.1.1.2.20040108110622.01cbcb40@pop.gmx.de> Message-ID: <6.0.1.1.2.20040108112205.01da0fc0@pop.gmx.de> At 11:10 08.01.2004, you wrote: >Point is that exists cases when we MUST DO this EXPLICITLY. ok, I think you're talking about when constructing several cursors that might conflict with each other, but I think the original problem was just that there seemed to be a reference to a Valentina Xtra instance in RAM so the closeXLib call failed to actually dispose of the loaded instance of the Xtra, which subsequently caused a conflict when trying to load the other Xtra. Martin. From forgete at cafederic.com Thu Jan 8 10:37:52 2004 From: forgete at cafederic.com (Eric Forget) Date: Thu Jan 8 09:38:07 2004 Subject: [VSDK] VDK_Cursor::Update() broken? In-Reply-To: Message-ID: > 2) what means ALL FIELDS of T1 are locked? > you mean records? Some records, but all the fields of those records... ?ric ___________________________________________________________________ Eric Forget Cafederic ForgetE@cafederic.com Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684> From sunshine at public.kherson.ua Thu Jan 8 18:35:37 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jan 8 10:35:29 2004 Subject: [VSDK] VDK_Cursor::Update() broken? In-Reply-To: Message-ID: on 1/8/04 5:37 PM, Eric Forget at forgete@cafederic.com wrote: >> 2) what means ALL FIELDS of T1 are locked? >> you mean records? > > Some records, but all the fields of those records... Eric, But was lock records. So if a record is locked, then OF COURSE all its fields locked. We cannot lock only some fields -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From martin.kloss at gmx.de Thu Jan 8 19:46:14 2004 From: martin.kloss at gmx.de (Martin Kloss) Date: Thu Jan 8 12:46:26 2004 Subject: [ALL] Export Message-ID: <6.0.1.1.2.20040108194235.01daab90@pop.gmx.de> Hi Ruslan, I need to export fields from a db, but not their content, only if they have content or not. I would usually do it like: SELECT LENGTH(name) > 0 as has_name or SELECT (name <> '') as has_name But this does not work in Valentina, although the docs say that LENGTH() is supported as a string function !? I can't use field methods, because the DB is on a DVD and it's 800MB and I don't want to copy the DB to the harddrive, add fields etc. just for a simple export operation. How can I do this? Martin. From sunshine at public.kherson.ua Thu Jan 8 22:21:25 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jan 8 14:21:16 2004 Subject: [ALL] Export In-Reply-To: <6.0.1.1.2.20040108194235.01daab90@pop.gmx.de> Message-ID: on 1/8/04 8:46 PM, Martin Kloss at martin.kloss@gmx.de wrote: Hi Martin, > I need to export fields from a db, but not their content, > only if they have content or not. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not clear. > I would usually do it like: > SELECT LENGTH(name) > 0 as has_name > > or > > SELECT (name <> '') as has_name I have not understand, you check length of FIELD NAME ? > But this does not work in Valentina, although the docs > say that LENGTH() is supported as a string function !? It is supported inside BaseObject methods. > I can't use field methods, because the DB is on a DVD > and it's 800MB and I don't want to copy the DB to the > harddrive, add fields etc. just for a simple export operation. > > How can I do this? You want say that you cannot create BaseObject method on the fly for READ ONLY db ? Probably yes. This is not possible. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From martin.kloss at gmx.de Thu Jan 8 21:53:55 2004 From: martin.kloss at gmx.de (Martin Kloss) Date: Thu Jan 8 14:54:10 2004 Subject: [ALL] Export In-Reply-To: References: <6.0.1.1.2.20040108194235.01daab90@pop.gmx.de> Message-ID: <6.0.1.1.2.20040108214812.01d02d28@pop.gmx.de> At 21:21 08.01.2004, you wrote: > > I need to export fields from a db, but not their content, > > only if they have content or not. > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not clear. very simple, say you have 2 records, but only one contains a string, the other one is empty: 1. ruslan 2. now instead of selecting the field itself, which would give me the value of the field, I want to get results where the result is 1 for a value and 0 for no value. 1. 1 2. 0 > > SELECT (foo <> '') as has_name This would create a tmp field to be a boolean, but in Valentina is does not work, you'd need to create a field method. >You want say that you cannot create BaseObject method on the fly >for READ ONLY db ? Probably yes. This is not possible. I know, I just wanted to know if you know any other way to do it. Currently I have to select the fields and parse the results, so that I get what I want. But that means going through every single record and if there are many records this is kinda slow. Martin. From sunshine at public.kherson.ua Thu Jan 8 23:05:32 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jan 8 15:05:29 2004 Subject: Vserver In-Reply-To: Message-ID: on 1/8/04 10:48 PM, Erich Geiersberger at erichg@mcmm.com wrote: >> All you need is >> >> V4MDReference.pdf -- Hmm, it seems I need yet update it. >> okay, I will try to do this ASAP. >> >> Vserver.pdf -- it describe sever, how to make installers. > > > I have downloaded these, but still a lot of questions left. Ok, send such questions to Valentina list. > - What about "opensession" / "closesession" are they required? Optional. You need it only if you want remotelly connect to Server as administrator. Please note, in V4MD_Client now present 3d Xtra Vserver. You can see all its commands using standard Director command to list methods of Xtra. > - Do I need to add/remove users with "adduser"/"removeuser" or can I > write directly to master.vdb? Use Add/remove user. And only administrator can do this. > - how do I handle server timeout/disconnects? >From client side? You will get error code. > - I get undocumented errors 363 somtimes without an obvious reason > (seems to be a "cannot set record lock"). I need document it. This is kernel error -- CANNOT SET record lock. > - also error 10038 (seems to be winsock after a server timeout) I am not sure, it seems all Server related errors are in Vserver.pdf This is list enum EServer_Errors { kSRV_ServerError = 1000, kSRV_ConnectionLimit, // 1001: Connection limit reached kSRV_ProtocolNotSupported, // 1002: Protocol version not supported kSRV_NotEnoughMemory, // 1003: Not enough memory kSRV_InvalidAccess, // 1004: Invalid access kSRV_InvalidUserNameOrPassword, // 1005: Invalid user name or password kSRV_InvalidUserName, // 1006: Invalid user name kSRV_InvalidDataBaseName, // 1007: Invalid database name kSRV_NotSupported, // 1008: Operation is not currently supported kSRV_InvalidIdentifier, // 1009: Invalid identifier kSRV_OperationFailed, // 1010: Call to Valentina kernel failed kSRV_AlreadyExist, // 1011: Object already exists (field, baseobject, database, user) kSRV_WrongResponse, // 1012: Wrong client response kSRV_UnexpectedOperation, // 1013: Unexpected operation kSRV_LogFail, // 1014: Operation with log fail kSRV_InitFailed, // 1015: Server initialization failed kSRV_CannotAuthenticateUser, // 1016: Cannot authenticate user kSRV_AccessDenied, // 1017: Access denied kSRV_OutOfSync, // 1018: Command is out of sync kSRV_Unknown, // 1019: Unknown server error kSRV_NoCurrentDb, // 1020: Current database not set kSRV_InvalidCommand, // 1021: Command cannot be executed on this type of object kSRV_CorruptedRegistry, // 1022: Registry corrupted kSRV_ConnectionTimedOut, // 1023: Connection timed out kSRV_WrongDeploymentSerial // 1024: Wrong deployment serial }; -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Thu Jan 8 23:08:17 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jan 8 15:08:08 2004 Subject: [ALL] Export In-Reply-To: <6.0.1.1.2.20040108214812.01d02d28@pop.gmx.de> Message-ID: on 1/8/04 10:53 PM, Martin Kloss at martin.kloss@gmx.de wrote: > At 21:21 08.01.2004, you wrote: >>> I need to export fields from a db, but not their content, >>> only if they have content or not. >> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not clear. > > very simple, say you have 2 records, but only one contains > a string, the other one is empty: > > 1. ruslan > 2. > > now instead of selecting the field itself, which would > give me the value of the field, I want to get results where > the result is 1 for a value and 0 for no value. > > 1. 1 > 2. 0 I see. >>> SELECT (foo <> '') as has_name > > This would create a tmp field to be a boolean, > but in Valentina is does not work, you'd need to > create a field method. This will work in 2.0 >> You want say that you cannot create BaseObject method on the fly >> for READ ONLY db ? Probably yes. This is not possible. > > I know, I just wanted to know if you know any other way > to do it. Currently I have to select the fields and parse the > results, so that I get what I want. But that means going > through every single record and if there are many records > this is kinda slow. This condition changes on the fly? Why you cannot add this BaseObject method to database structure? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From fb at memedia.de Thu Jan 8 22:22:29 2004 From: fb at memedia.de (Florian Bogeschdorfer) Date: Thu Jan 8 15:22:32 2004 Subject: AW: [ALL] Export In-Reply-To: <6.0.1.1.2.20040108214812.01d02d28@pop.gmx.de> Message-ID: > -----Urspr?ngliche Nachricht----- > Von: valentina-bounces@lists.macserve.net > [mailto:valentina-bounces@lists.macserve.net] Im Auftrag von > Martin Kloss > Gesendet: Donnerstag, 8. Januar 2004 21:54 > An: Valentina Developers > Betreff: Re: [ALL] Export > > At 21:21 08.01.2004, you wrote: > > > I need to export fields from a db, but not their content, only if > > > they have content or not. > > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not clear. > > very simple, say you have 2 records, but only one contains a > string, the other one is empty: > > 1. ruslan > 2. > > now instead of selecting the field itself, which would give > me the value of the field, I want to get results where the > result is 1 for a value and 0 for no value. > > 1. 1 > 2. 0 > > > > SELECT (foo <> '') as has_name > > This would create a tmp field to be a boolean, but in > Valentina is does not work, you'd need to create a field method. > > >You want say that you cannot create BaseObject method on the fly for > >READ ONLY db ? Probably yes. This is not possible. > > I know, I just wanted to know if you know any other way to do > it. Currently I have to select the fields and parse the > results, so that I get what I want. But that means going > through every single record and if there are many records > this is kinda slow. > I may not understand but why don't you do SELECT foo FROM myTable WHERE foo<>'' This will result in a cursor holding all records where foo is not EMPTY Florian From martin.kloss at gmx.de Thu Jan 8 22:51:22 2004 From: martin.kloss at gmx.de (Martin Kloss) Date: Thu Jan 8 15:51:32 2004 Subject: [ALL] Export In-Reply-To: References: <6.0.1.1.2.20040108214812.01d02d28@pop.gmx.de> Message-ID: <6.0.1.1.2.20040108224933.01daa578@pop.gmx.de> At 22:08 08.01.2004, you wrote: > >>> SELECT (foo <> '') as has_name > > > > This would create a tmp field to be a boolean, > > but in Valentina is does not work, you'd need to > > create a field method. > >This will work in 2.0 ok, great. > > I know, I just wanted to know if you know any other way > > to do it. Currently I have to select the fields and parse the > > results, so that I get what I want. But that means going > > through every single record and if there are many records > > this is kinda slow. > >This condition changes on the fly? >Why you cannot add this BaseObject method to database structure? huh? no, I can't change the structure, the db is on the DVD and it's read-only and huge. I just wanted to make a quick export of a list which indicates which fields of which records are filled and which are not: 1. X 2. 0 3. 0 4. X 5. X .... Martin. From martin.kloss at gmx.de Thu Jan 8 22:53:31 2004 From: martin.kloss at gmx.de (Martin Kloss) Date: Thu Jan 8 15:53:42 2004 Subject: AW: [ALL] Export In-Reply-To: References: <6.0.1.1.2.20040108214812.01d02d28@pop.gmx.de> Message-ID: <6.0.1.1.2.20040108225124.01dbcc70@pop.gmx.de> At 22:22 08.01.2004, you wrote: >I may not understand but why don't you do SELECT foo FROM myTable WHERE >foo<>'' because I need all records and not just the empty ones. we're already why off here, my question was only about creating tmp fields at runtime, nothing else. getting the records and parsing the list is what I do know, but if would have been faster without the extra step. Martin. From chuckbo at hinkles.us Fri Jan 9 21:02:11 2004 From: chuckbo at hinkles.us (chuck hinkle) Date: Fri Jan 9 21:02:26 2004 Subject: Calculated field syntax question Message-ID: I guessed at the SQL syntax to create an autonumber field, but I'm getting an error 344 (Unique field) whenever I try doing an insert, so I suspect that I have this syntax set up incorrectly. Can someone lend a hand, please? Pic_name = new vvarchar("Pic_name",80,"ASCII", kV_Indexed + kV_Unique) HSize = new vushort("Hsize") VSize = new vushort("Vsize") ' Calculate next largest ID for Pic_ID Pic_ID = new vullong("Pic_ID", kV_Indexed + kV_Unique) Pic_ID.setmethod("Max(Pic_ID) + 1") (It's tough when your knowledge of SQL is based on what Access generates. What's a very basic SQL book anyone can recommend to use as a desktop reference? Or, a website?) chuck || Chuck Hinkle [INTJ] || chuckbo@hinkles.us || || || "Perception is usually more persuasive than reality." From sunshine at public.kherson.ua Sat Jan 10 09:03:23 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jan 10 01:03:16 2004 Subject: Calculated field syntax question In-Reply-To: Message-ID: on 1/10/04 5:02 AM, chuck hinkle at chuckbo@hinkles.us wrote: > > > I guessed at the SQL syntax to create an autonumber field, but I'm getting > an error 344 (Unique field) whenever I try doing an insert, so I suspect > that I have this syntax set up incorrectly. > > Can someone lend a hand, please? > > Pic_name = new vvarchar("Pic_name",80,"ASCII", kV_Indexed + kV_Unique) > HSize = new vushort("Hsize") > VSize = new vushort("Vsize") > > ' Calculate next largest ID for Pic_ID > > Pic_ID = new vullong("Pic_ID", kV_Indexed + kV_Unique) > Pic_ID.setmethod("Max(Pic_ID) + 1") > > > > (It's tough when your knowledge of SQL is based on what Access generates. > What's a very basic SQL book anyone can recommend to use as a desktop > reference? Or, a website?) I think MAX function do not works in the BaseObject methods. Only as aggregative. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sat Jan 10 13:08:19 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jan 10 05:08:14 2004 Subject: Valentina XCMD question In-Reply-To: Message-ID: on 1/10/04 11:39 AM, Rodney Tamblyn at rodney_tamblyn@yahoo.com wrote: Hi Rodney, I have CC to Valentina list. May be somebody from XCDM developers have advice ? > Hi Ken, > > Quick and very simple Valentina question: > > How to you set Valentina up on Windows? I must be doing something > wrong. I've set the externals path to ./VXCMD_Win_MC.dll (or whatever > the latest name of the external is). > > When I call: > > Valentina( "Database_Open", pFile) > > ... it returns "Error 123" > > pFile is a valid path to a Valentina database, created on Mac and > copied across to Windows. The file is not corrupt, and it ends in > ".vdb". The file notation uses the standard REvolution slash notation > eg c:/Documents and Settings/Rodney/Local Settings/Application Data/OV > Preferences.vdb" All this is correct. ADVICE1: does other simple VXCMD function works: DebugLevel? Valentina_Error? if yes, this means that VXCMD was found and loaded. also you can download and install dbgView utility. to see output from VXCMD commands. If you see Valentina messages then this also confirm that VXCMD itself was found and works. > I tried copying the file to the top level of the drive and removed > spaces from the filename, making it > c:\test.vdb > > when I called this, Valentina returned error 306 kFBL_CacheNotPresent Aha! This means that you probably have forget to call ValentinaInit() > I think all of this indicates that Valentina is not properly > initialised, however when I call Valentina Init it doesn't return any > errors. Hmm, so call it... > I am using the latest version of VXCMD for windows 1.10, and have > placed this in the same folder as Revolution 2.1.2, and set the > externals path of the stack to "./VXCMD_Win_MC.dll" Try put it INTO folder of your stack also. > I found with the OSX version that you can't rename the external (eg to > "VXCMD") so I've left the name as supplied. > > Am copying Ruslan in case he has any comments. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From rjb at rz.uni-potsdam.de Sat Jan 10 16:03:10 2004 From: rjb at rz.uni-potsdam.de (Robert Brenstein) Date: Sat Jan 10 09:13:03 2004 Subject: Valentina XCMD question In-Reply-To: References: Message-ID: > > >> Quick and very simple Valentina question: >> >> How to you set Valentina up on Windows? I must be doing something >> wrong. I've set the externals path to ./VXCMD_Win_MC.dll (or whatever >> the latest name of the external is). >> >> When I call: >> >> Valentina( "Database_Open", pFile) >> >> ... it returns "Error 123" >> >> pFile is a valid path to a Valentina database, created on Mac and >> copied across to Windows. The file is not corrupt, and it ends in >> ".vdb". The file notation uses the standard REvolution slash notation >> eg c:/Documents and Settings/Rodney/Local Settings/Application Data/OV >> Preferences.vdb" > >All this is correct. > Valentina requires path in Windows notation not Rev's. Or was it changed in the newest version, Ruslan? The easiest way to verify that vxmcd is responding correctly is to call the version function. Robert From sunshine at public.kherson.ua Sat Jan 10 20:19:37 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jan 10 12:19:26 2004 Subject: Valentina XCMD question In-Reply-To: Message-ID: on 1/10/04 5:03 PM, Robert Brenstein at rjb@rz.uni-potsdam.de wrote: > Valentina requires path in Windows notation not Rev's. Or was it > changed in the newest version, Ruslan? No. Good point. Thank you Robert. > The easiest way to verify that vxmcd is responding correctly is to > call the version function. Another good TIP :-) Rodney, please check this. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From raycher at ccsmac.com Sun Jan 11 13:35:39 2004 From: raycher at ccsmac.com (Bob Raycher) Date: Sun Jan 11 12:35:46 2004 Subject: [V4WS] Message-ID: There seems to be a problem with Valentina for WebSiphon version 1.10. I get an error trying to create and update a record. The error Code is 605 ?Can?t be updated?. If I switch back to version 1.9.8b8 I do not get the error. The error is on the valAddRecord line. It seems that the record is not created. Has something changed or is there a bug? dbRef = valOpenDatabase(db_name); CursorRef = valSQLSelect(dbRef, "select RecID, * from entry"); valAddRecord(CursorRef,[["created" creatsecs]["modified" modsecs]["FirstName" inputFirstName]]); Thanks, Bob Raycher Creative Consulting Services http://www.ccsmac.com/ 440-985-1735 From sunshine at public.kherson.ua Sun Jan 11 21:07:51 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sun Jan 11 13:07:46 2004 Subject: [V4WS] In-Reply-To: Message-ID: on 1/11/04 8:35 PM, Bob Raycher at raycher@ccsmac.com wrote: > There seems to be a problem with Valentina for WebSiphon version 1.10. > > I get an error trying to create and update a record. The error Code is 605 > ?Can?t be updated?. > > If I switch back to version 1.9.8b8 I do not get the error. The error is on > the valAddRecord line. It seems that the record is not created. Has > something changed or is there a bug? > > dbRef = valOpenDatabase(db_name); > CursorRef = valSQLSelect(dbRef, "select RecID, * from entry"); > valAddRecord(CursorRef,[["created" creatsecs]["modified" > modsecs]["FirstName" inputFirstName]]); Hi Bob, Please remind me, if I have add to V4WS flags for record locks? Into SqlSelect() ? I do not see that you use them. And it seems you use 1.9.8b8 which is not 1.9.8 release. Please check docs. SqlSelect() now must have flags kReadWrite to allow modification of cursor -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From mdeh at earthlink.net Sun Jan 11 13:31:44 2004 From: mdeh at earthlink.net (Michael de Haan) Date: Sun Jan 11 15:31:56 2004 Subject: Best Way Message-ID: <8DC7FD46-447D-11D8-B443-000A9566BB4A@earthlink.net> Ruslan, 2 questions: (1) What is the best way to search for , for example ?word1? ?word2? ?word3? where word1, word2 or word3 can be in any order. In the past, I have used the "LIKE" and " AND" operator to put each word into it's own LIKE statement, but I wondered if there is an easier "Valentina" way? (2) If the user is allowed to use double quotation marks " " to defined an exact search, does Val provide a way to recognize this or must it be appropriately parsed by the program before being passed to the Val engine? Thanks in advance From sunshine at public.kherson.ua Sun Jan 11 23:40:36 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sun Jan 11 15:40:29 2004 Subject: Best Way In-Reply-To: <8DC7FD46-447D-11D8-B443-000A9566BB4A@earthlink.net> Message-ID: on 1/11/04 11:31 PM, Michael de Haan at mdeh@earthlink.net wrote: Hi Michael, > 2 questions: > > > (1) What is the best way to search for , for example > > ?word1? ?word2? ?word3? > > > where word1, word2 or word3 can be in any order. In the past, I have > used the "LIKE" and " AND" operator to put each word into it's own > LIKE statement, but I wondered if there is an easier "Valentina" way? I think you can try combine 3 words in the SIGNLE like using REGEX's OR statement. fld LIKE 'word1|word2|word3' Then search will be ONE scan of file, i.e. 3 times faster. > (2) If the user is allowed to use double quotation marks " " to defined > an exact search, does Val provide a way to recognize this or must it be > appropriately parsed by the program before being passed to the Val > engine? You need parse it. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sun Jan 11 23:53:02 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sun Jan 11 15:52:51 2004 Subject: FIXED: [V4MD] V4MD Xtra vs. V4MD_client Xtra In-Reply-To: <6.0.1.1.2.20040108112205.01da0fc0@pop.gmx.de> Message-ID: Hi All, Hi Erich, Well, this was very hard and interesting hunting. As result I have found that it seems I did not correctly return error codes from Xtra by rules of Macromedia. I have simply return now ZERO (success) And now Xtra can be unloaded with no problems. Erich, so you need new builds of V4MD and V4MD_Client, yes? For both platforms ? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From mdeh at earthlink.net Sun Jan 11 14:37:04 2004 From: mdeh at earthlink.net (Michael de Haan) Date: Sun Jan 11 16:37:15 2004 Subject: Best Way In-Reply-To: References: Message-ID: thanks Ruslan I will give it a try Michael On Jan 11, 2004, at 1:40 PM, Ruslan Zasukhin wrote: > on 1/11/04 11:31 PM, Michael de Haan at mdeh@earthlink.net wrote: > > Hi Michael, > >> 2 questions: >> >> >> (1) What is the best way to search for , for example >> >> ?word1? ?word2? ?word3? >> >> >> where word1, word2 or word3 can be in any order. In the past, I have >> used the "LIKE" and " AND" operator to put each word into it's own >> LIKE statement, but I wondered if there is an easier "Valentina" way? > > I think you can try combine 3 words in the SIGNLE like using REGEX's > OR statement. > > fld LIKE 'word1|word2|word3' > > Then search will be ONE scan of file, i.e. 3 times faster. > > >> (2) If the user is allowed to use double quotation marks " " to >> defined >> an exact search, does Val provide a way to recognize this or must it >> be >> appropriately parsed by the program before being passed to the Val >> engine? > > You need parse it. > > -- > Best regards, > Ruslan Zasukhin [ I feel the need...the need for speed ] > ------------------------------------------------------------- > e-mail: ruslan@paradigmasoft.com > web: http://www.paradigmasoft.com > > To subscribe to the Valentina mail list go to: > http://lists.macserve.net/mailman/listinfo/valentina > ------------------------------------------------------------- > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > From sunshine at public.kherson.ua Mon Jan 12 01:04:21 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sun Jan 11 17:04:12 2004 Subject: A handful of questions and a couple of documentation errors In-Reply-To: <007701c3d88c$e37d0bf0$6901a8c0@LightningFlash> Message-ID: on 1/11/04 11:50 PM, Ken Ray at kray@sonsothunder.com wrote: Hi Ken, I will CC answers to Valentina list, okay? > Ruslan, > > In getting our installer developed for embedded Valentina Server (which > works great, btw), we had a handful of questions come up: > > 1) In master.vdb, in the Database table, there is a field 'path'. I know > that full paths work here to identify where the databases are. But can > one use relative paths? > The reason I ask is (a) that I noticied a > setting in the INI file for "SystemCatalog=Databases;the path, where > databases are stored" and wondered if this had anything to do with > search paths, and (b) if our customer chooses to install our embedded > server in a location of their choice, we'd have to update the paths in > master.vdb if you could only use full paths. If we use the "databases" > folder described in the embedded server docs, can we just put the file > names of the databases into the 'path' field? Like "master.vdb", > "ie_db.vdb", etc.? We need ask Igor on this. SystemCatalog must allow you specify ANY location on disk to be as folder of server dbs. When server will be start first time, it will create masterdb in this catalog it is not here. Igor, can you give more info? And yes, this must be described in docs more detailed. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Mon Jan 12 01:06:10 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sun Jan 11 17:05:58 2004 Subject: A handful of questions and a couple of documentation errors In-Reply-To: <007701c3d88c$e37d0bf0$6901a8c0@LightningFlash> Message-ID: on 1/11/04 11:50 PM, Ken Ray at kray@sonsothunder.com wrote: > 2) Are license files additive? YES. Valentina scan "license" folders and add found numbers of good licenses. > By that I mean that when I make an > embedded server deployment, I have a 'license_emb' file (with 5 > connections) and a 'license_win' file (with 15 connections) that makes a > total of 20 connections. Yes. > If the customer later wants to upgrade to 40 > connections, can I just make another 'license_win' file with 20 > connections and put it in the 'licenses' folder, or do I have to make a > 35-connection license and overwrite the 15-connection license that's > already there? You need just add one more file with 20 connections. > I'm assuming that they are additive as it would make it > really hard for the Connection Generator to understand what's going on, > but I just wanted confirmation of this. You are right -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From mdeh at earthlink.net Sun Jan 11 15:09:28 2004 From: mdeh at earthlink.net (Michael de Haan) Date: Sun Jan 11 17:09:37 2004 Subject: Best Way In-Reply-To: References: Message-ID: <3508EE4A-448B-11D8-953B-000A9566BB4A@earthlink.net> Ruslan. Now that I think of it, I am not sure if I conveyed what I really want; for example...lets say I am looking for "The big bad wolf" Now, I would like this to be found with "The big bad wolf" or "The bad big wolf" or "bad wolf big the" etc etc. Does this change your answer Michael. On Jan 11, 2004, at 1:40 PM, Ruslan Zasukhin wrote: > on 1/11/04 11:31 PM, Michael de Haan at mdeh@earthlink.net wrote: > > Hi Michael, > >> 2 questions: >> >> >> (1) What is the best way to search for , for example >> >> ?word1? ?word2? ?word3? >> >> >> where word1, word2 or word3 can be in any order. In the past, I have >> used the "LIKE" and " AND" operator to put each word into it's own >> LIKE statement, but I wondered if there is an easier "Valentina" way? > > I think you can try combine 3 words in the SIGNLE like using REGEX's > OR statement. > > fld LIKE 'word1|word2|word3' > > Then search will be ONE scan of file, i.e. 3 times faster. > > >> (2) If the user is allowed to use double quotation marks " " to >> defined >> an exact search, does Val provide a way to recognize this or must it >> be >> appropriately parsed by the program before being passed to the Val >> engine? > > You need parse it. > > -- > Best regards, > Ruslan Zasukhin [ I feel the need...the need for speed ] > ------------------------------------------------------------- > e-mail: ruslan@paradigmasoft.com > web: http://www.paradigmasoft.com > > To subscribe to the Valentina mail list go to: > http://lists.macserve.net/mailman/listinfo/valentina > ------------------------------------------------------------- > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > From sunshine at public.kherson.ua Mon Jan 12 01:11:47 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sun Jan 11 17:11:39 2004 Subject: A handful of questions and a couple of documentation errors In-Reply-To: <007701c3d88c$e37d0bf0$6901a8c0@LightningFlash> Message-ID: on 1/11/04 11:50 PM, Ken Ray at kray@sonsothunder.com wrote: > 3) In the Connection Generator, I notice that you can set an expiration > date on the license files you create. Two questions here: > (a) When the license times-out at the customer's location, what error > message do they get when Valentina tries to connect? You can see this with DEMO license file from our site at 1 of the next month. On start of Vserver it say in the LOG file cannot find any license file. > (b) Does the 'license_batch' file understand the expiration so that > after the expiration date those license are re-usable? > Or how does this work? Hmm. NO. I did not think about this. In fact this was just an idea, to give to VDN developers easy way to create license files that expire, and therefore provide e.g. SUBSCRIPTION way of sale of your products. I assume that many/most developers will NOT use this feature. So consider it as a draft idea. > For example, suppose I only have 25 connections left in my batch > file and I create a license file for 20 licenses that expires on > 1/1/2005. This leaves me with 5 connections to "spend". In December > 2004, I remind the customer that they need to pay their annual fee for > our software before it expires on 1/1/2005. I agree with you. To support this feature correctly, Connection Generator must store in the batch file that on SOME date, N license must return back. > If they *pay* for the renewal, I'd assume we need to generate a new > license file that works until 1/1/2006. Is this done by opening the > license file that was set to expire on 1/1/2005 and changing the > expiration date to 1/1/2006 and then replacing the license file on their > server with this new one? Or some other way? > If they *don't pay* for the renewal and let it expire, how do we get > those 20 connections back into our "pool" to be sold to someone else? > Since we have our 'license_batch' file file only contains 5 connections > left, and the 'license_win' file that contains 20 connections that times > out 1/1/2005, how do we combine the two? Ken, I hope you are not going to use feature right now? :-) And if you think it is interesting, then let's all together discuss it and think how to make it better. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Mon Jan 12 01:13:14 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sun Jan 11 17:13:02 2004 Subject: A handful of questions and a couple of documentation errors In-Reply-To: <007701c3d88c$e37d0bf0$6901a8c0@LightningFlash> Message-ID: on 1/11/04 11:50 PM, Ken Ray at kray@sonsothunder.com wrote: > 4) The log file that is maintained by Valentina Server during > operation... does it have a maximum size it can reach? Or do you only > keep the last X amount of entries in the log file to keep it small? As far as I know, There is no any limits now. Yes, Igor? On each Vserver start, it re-write log file and start it again. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Mon Jan 12 01:15:33 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sun Jan 11 17:15:22 2004 Subject: A handful of questions and a couple of documentation errors In-Reply-To: <007701c3d88c$e37d0bf0$6901a8c0@LightningFlash> Message-ID: on 1/11/04 11:50 PM, Ken Ray at kray@sonsothunder.com wrote: > 5) In the Valentina Server.ini file there is an entry for the number of > threads (which is by default 5). The info in the docs is not sufficient > to allows us to make up our minds on how many threads to enter here. How > are threads used, and what guidelines should we use in adjusting this > number in the INI file? Good question. In short: for 1-2 processor computers use 5-20 threads. For 8 CPU computer you may wish set more threads. This is internal threads of server. Note, it is bad idea to have e.g. 500 threads on 1 CPU computer, You will get only a lots of overhead and slow down. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Mon Jan 12 01:23:42 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sun Jan 11 17:23:30 2004 Subject: Best Way In-Reply-To: <3508EE4A-448B-11D8-953B-000A9566BB4A@earthlink.net> Message-ID: on 1/12/04 1:09 AM, Michael de Haan at mdeh@earthlink.net wrote: > Ruslan. > Now that I think of it, I am not sure if I conveyed what I really want; > > for example...lets say I am looking for "The big bad wolf" > > > Now, > I would like this to be found with "The big bad wolf" or "The bad big > wolf" or "bad wolf big the" etc etc. > > > Does this change your answer Then it is better index this field BY WORDS. And do search WHERE fld = 'bad' and fld 'big' and fld = 'wolf' -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From erichg at mcmm.com Mon Jan 12 00:41:41 2004 From: erichg at mcmm.com (Erich Geiersberger) Date: Sun Jan 11 17:43:37 2004 Subject: FIXED: [V4MD] V4MD Xtra vs. V4MD_client Xtra In-Reply-To: References: Message-ID: >Hi All, >Hi Erich, > >Well, this was very hard and interesting hunting. > >As result I have found that it seems I did not correctly return error codes >from Xtra by rules of Macromedia. > >I have simply return now ZERO (success) >And now Xtra can be unloaded with no problems. > >Erich, so you need new builds of V4MD and V4MD_Client, yes? >For both platforms ? Thanks Ruslan, that was really fast. Yes, new builds would be fine. Erich From kray at sonsothunder.com Sun Jan 11 21:17:40 2004 From: kray at sonsothunder.com (Ken Ray) Date: Sun Jan 11 21:20:22 2004 Subject: A handful of questions and a couple of documentation errors In-Reply-To: Message-ID: <00b801c3d8ba$a6b03bb0$6901a8c0@LightningFlash> > > 5) In the Valentina Server.ini file there is an entry for > the number > > of threads (which is by default 5). The info in the docs is not > > sufficient to allows us to make up our minds on how many threads to > > enter here. How are threads used, and what guidelines > should we use in > > adjusting this number in the INI file? > > Good question. > > In short: > for 1-2 processor computers use 5-20 threads. OK, but what should we be looking for that will tell us to increase the number of threads from 5? Is it based on the amount of data being transmitted at any given time, the number of concurrent connections, what? Ken Ray Sons of Thunder Software Email: kray@sonsothunder.com Web Site: http://www.sonsothunder.com/ From kray at sonsothunder.com Sun Jan 11 21:19:54 2004 From: kray at sonsothunder.com (Ken Ray) Date: Sun Jan 11 21:21:09 2004 Subject: Valentina XCMD question In-Reply-To: Message-ID: <00ba01c3d8ba$f6ab8b60$6901a8c0@LightningFlash> > > Valentina requires path in Windows notation not Rev's. Or was it > > changed in the newest version, Ruslan? > > No. This is the same thing I responded to Rodney about. All he needed to do was put: replace "/" with "\" before his call to Valentina and everything was fine. Ken Ray Sons of Thunder Software Email: kray@sonsothunder.com Web Site: http://www.sonsothunder.com/ From kray at sonsothunder.com Sun Jan 11 21:15:51 2004 From: kray at sonsothunder.com (Ken Ray) Date: Sun Jan 11 21:26:02 2004 Subject: A handful of questions and a couple of documentation errors In-Reply-To: Message-ID: <00b701c3d8ba$671434c0$6901a8c0@LightningFlash> > > 4) The log file that is maintained by Valentina Server during > > operation... does it have a maximum size it can reach? Or > do you only > > keep the last X amount of entries in the log file to keep it small? > > As far as I know, > > There is no any limits now. > Yes, Igor? > > On each Vserver start, it re-write log file and start it again. OK, so that means that if the server machine stay's "up" for a long time, we could get a large log file generated (depending on the verbose level), right Ruslan/Igor? Ken Ray Sons of Thunder Software Email: kray@sonsothunder.com Web Site: http://www.sonsothunder.com/ From sunshine at public.kherson.ua Mon Jan 12 09:26:46 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Jan 12 01:26:38 2004 Subject: A handful of questions and a couple of documentation errors In-Reply-To: <00b701c3d8ba$671434c0$6901a8c0@LightningFlash> Message-ID: on 1/12/04 5:15 AM, Ken Ray at kray@sonsothunder.com wrote: >>> 4) The log file that is maintained by Valentina Server during >>> operation... does it have a maximum size it can reach? Or >> do you only >>> keep the last X amount of entries in the log file to keep it small? >> >> As far as I know, >> >> There is no any limits now. >> Yes, Igor? >> >> On each Vserver start, it re-write log file and start it again. > > OK, so that means that if the server machine stay's "up" for a long > time, we could get a large log file generated (depending on the verbose > level), right Ruslan/Igor? Yes. Usually in deployment mode, verbose should be zero. And yes, I think we need add SIZE LIMIT on log, as this do other DBs -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From giv at tlc.kherson.ua Mon Jan 12 10:09:43 2004 From: giv at tlc.kherson.ua (Igor Gomon) Date: Mon Jan 12 02:18:02 2004 Subject: A handful of questions and a couple of documentation errors References: Message-ID: <004001c3d8e4$95160fe0$b51226c3@giv> Hi Ken, Hi Ruslan, > > In getting our installer developed for embedded Valentina Server (which > > works great, btw), we had a handful of questions come up: > > > > 1) In master.vdb, in the Database table, there is a field 'path'. I know > > that full paths work here to identify where the databases are. But can > > one use relative paths? Yes, you can. The paths are relative to the location of VServer executable. > > The reason I ask is (a) that I noticied a > > setting in the INI file for "SystemCatalog=Databases;the path, where > > databases are stored" and wondered if this had anything to do with > > search paths, and (b) if our customer chooses to install our embedded > > server in a location of their choice, we'd have to update the paths in > > master.vdb if you could only use full paths. If we use the "databases" > > folder described in the embedded server docs, can we just put the file > > names of the databases into the 'path' field? Like "master.vdb", > > "ie_db.vdb", etc.? No. -- Best regards, Igor Gomon ------------------------------------------------------------- e-mail: giv_ua@inbox.ru web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://listserv.macserve.net/mailman/listinfo/valentina From giv at tlc.kherson.ua Mon Jan 12 10:05:25 2004 From: giv at tlc.kherson.ua (Igor Gomon) Date: Mon Jan 12 02:18:09 2004 Subject: A handful of questions and a couple of documentation errors References: Message-ID: <003f01c3d8e4$94432f80$b51226c3@giv> > on 1/11/04 11:50 PM, Ken Ray at kray@sonsothunder.com wrote: > > > 4) The log file that is maintained by Valentina Server during > > operation... does it have a maximum size it can reach? Or do you only > > keep the last X amount of entries in the log file to keep it small? > > As far as I know, > > There is no any limits now. > Yes, Igor? Yes. But I think this will be implemented later. > On each Vserver start, it re-write log file and start it again. Yes -- Best regards, Igor Gomon ------------------------------------------------------------- e-mail: giv_ua@inbox.ru web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://listserv.macserve.net/mailman/listinfo/valentina From giv at tlc.kherson.ua Mon Jan 12 10:16:15 2004 From: giv at tlc.kherson.ua (Igor Gomon) Date: Mon Jan 12 02:18:12 2004 Subject: A handful of questions and a couple of documentation errors References: <00b801c3d8ba$a6b03bb0$6901a8c0@LightningFlash> Message-ID: <004101c3d8e4$95ea76e0$b51226c3@giv> > > > 5) In the Valentina Server.ini file there is an entry for > > the number > > > of threads (which is by default 5). The info in the docs is not > > > sufficient to allows us to make up our minds on how many threads to > > > enter here. How are threads used, and what guidelines > > should we use in > > > adjusting this number in the INI file? > > > > Good question. > > > > In short: > > for 1-2 processor computers use 5-20 threads. > > OK, but what should we be looking for that will tell us to increase the > number of threads from 5? Is it based on the amount of data being > transmitted at any given time, the number of concurrent connections, > what? This should be reletad with the number of concurrent connections. Say if you know that you concurrent connection to VServer will almost never exceed 5 than you can leave this value by default. By if you know that you typically should have about 20 concurrent connections that it's better to increase this value to 15-20. -- Best regards, Igor Gomon ------------------------------------------------------------- e-mail: giv_ua@inbox.ru web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://listserv.macserve.net/mailman/listinfo/valentina From giv at tlc.kherson.ua Mon Jan 12 10:17:05 2004 From: giv at tlc.kherson.ua (Igor Gomon) Date: Mon Jan 12 02:18:16 2004 Subject: A handful of questions and a couple of documentation errors References: Message-ID: <004201c3d8e4$96c371c0$b51226c3@giv> > on 1/12/04 5:15 AM, Ken Ray at kray@sonsothunder.com wrote: > > >>> 4) The log file that is maintained by Valentina Server during > >>> operation... does it have a maximum size it can reach? Or > >> do you only > >>> keep the last X amount of entries in the log file to keep it small? > >> > >> As far as I know, > >> > >> There is no any limits now. > >> Yes, Igor? > >> > >> On each Vserver start, it re-write log file and start it again. > > > > OK, so that means that if the server machine stay's "up" for a long > > time, we could get a large log file generated (depending on the verbose > > level), right Ruslan/Igor? > > Yes. > > Usually in deployment mode, verbose should be zero. > > And yes, I think we need add SIZE LIMIT on log, as this do other DBs Yes. -- Best regards, Igor Gomon ------------------------------------------------------------- e-mail: giv_ua@inbox.ru web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://listserv.macserve.net/mailman/listinfo/valentina From sunshine at public.kherson.ua Mon Jan 12 10:55:17 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Jan 12 02:55:11 2004 Subject: A handful of questions and a couple of documentation errors In-Reply-To: <004101c3d8e4$95ea76e0$b51226c3@giv> Message-ID: on 1/12/04 10:16 AM, Igor Gomon at giv@tlc.kherson.ua wrote: >>>> 5) In the Valentina Server.ini file there is an entry for >>> the number >>>> of threads (which is by default 5). The info in the docs is not >>>> sufficient to allows us to make up our minds on how many threads to >>>> enter here. How are threads used, and what guidelines >>> should we use in >>>> adjusting this number in the INI file? >>> >>> Good question. >>> >>> In short: >>> for 1-2 processor computers use 5-20 threads. >> >> OK, but what should we be looking for that will tell us to increase the >> number of threads from 5? Is it based on the amount of data being >> transmitted at any given time, the number of concurrent connections, >> what? > This should be reletad with the number of concurrent connections. > Say if you know that you concurrent connection to VServer will > almost never exceed 5 than you can leave this value by default. > By if you know that you typically should have about 20 concurrent > connections that it's better to increase this value to 15-20. Igor I think this is NOT very correct. People can think that if they expect 100 connections then they need set 100 threads. This will be bad idea. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From fb at memedia.de Mon Jan 12 10:04:55 2004 From: fb at memedia.de (Florian Bogeschdorfer) Date: Mon Jan 12 03:05:01 2004 Subject: AW: A handful of questions and a couple of documentation errors In-Reply-To: Message-ID: > > Igor I think this is NOT very correct. > > People can think that if they expect 100 connections then > they need set 100 threads. This will be bad idea. > Yes, please tell us exactly what it means. 5 threads=5 cursors at once? 5 threads in cache? 5 connections? ... Florian From sunshine at public.kherson.ua Mon Jan 12 11:56:11 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Jan 12 03:56:03 2004 Subject: [VSRV] .ini threads ? In-Reply-To: Message-ID: on 1/12/04 11:04 AM, Florian Bogeschdorfer at fb@memedia.de wrote: >> Igor I think this is NOT very correct. >> >> People can think that if they expect 100 connections then >> they need set 100 threads. This will be bad idea. >> > Yes, please tell us exactly what it means. 5 threads=5 cursors at once? 5 > threads in cache? 5 connections? ... Hi Florian, This threads DO NOT limit anything. You can have 5 threads, but still have 100 connections and 200 cursors. Exists different Threading models for Server. For example, one connection - one thread. But if we will get 100-1000 connections, this means we will have 100-1000 worker threads inside. RULE IS: each new thread in general slow down system. although for user of that thread it may looks that reaction as faster. So we need trade between reaction to user and general system performance. We use in Vserver more complex model: exists N e.g. 10 worker threads exists queue of tasks. Exists 100 connections. and may be exists 200 cursors. Each thread take the next task from queue, execute it, And again take the next task from queue. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From rjb at rz.uni-potsdam.de Mon Jan 12 10:41:53 2004 From: rjb at rz.uni-potsdam.de (Robert Brenstein) Date: Mon Jan 12 04:08:06 2004 Subject: A handful of questions and a couple of documentation errors In-Reply-To: References: Message-ID: >on 1/12/04 5:15 AM, Ken Ray at kray@sonsothunder.com wrote: > >>>> 4) The log file that is maintained by Valentina Server during >>>> operation... does it have a maximum size it can reach? Or >>> do you only >>>> keep the last X amount of entries in the log file to keep it small? >>> >>> As far as I know, >>> >>> There is no any limits now. >>> Yes, Igor? >>> >>> On each Vserver start, it re-write log file and start it again. >> >> OK, so that means that if the server machine stay's "up" for a long >> time, we could get a large log file generated (depending on the verbose >> level), right Ruslan/Igor? > >Yes. > >Usually in deployment mode, verbose should be zero. > >And yes, I think we need add SIZE LIMIT on log, as this do other DBs > Overwriting log files is a bad idea in my book. For example, if there was a system crash and the server is launched automatically after reboot, then one can't check out the log file at all. This may be needed for client support aside from development. Why don't you support log rollovers whenever the time or size limit is reached as many servers do? I mean that a user sets in the server config whether to expire logs by size (max file 1 mb, max file 2.2 mb) or by time (every day at 00:05, every 3 days at 1 am, every saturday at 9 am, every 1st of the month at 00:01). At the roll time, the server puts a timestamp on the log file (that is renames it) and then starts a new one. This is quite easy to implement. Robert Brenstein From fb at memedia.de Mon Jan 12 11:12:20 2004 From: fb at memedia.de (Florian Bogeschdorfer) Date: Mon Jan 12 04:12:26 2004 Subject: AW: [VSRV] .ini threads ? In-Reply-To: Message-ID: Alright, I understand. Thank you Florian > > Hi Florian, > > This threads DO NOT limit anything. > You can have 5 threads, but still have 100 connections and > 200 cursors. > > > Exists different Threading models for Server. > For example, > one connection - one thread. > > But if we will get 100-1000 connections, this means we will > have 100-1000 worker threads inside. > > RULE IS: > each new thread in general slow down system. > although for user of that thread it may looks that > reaction as faster. > > So we need trade between reaction to user and general system > performance. > > > We use in Vserver more complex model: > > exists N e.g. 10 worker threads > exists queue of tasks. > Exists 100 connections. > and may be exists 200 cursors. > > Each thread take the next task from queue, execute it, And > again take the next task from queue. > > > > -- > Best regards, > Ruslan Zasukhin [ I feel the need...the need for speed ] > ------------------------------------------------------------- > e-mail: ruslan@paradigmasoft.com > web: http://www.paradigmasoft.com > > To subscribe to the Valentina mail list go to: > http://lists.macserve.net/mailman/listinfo/valentina > ------------------------------------------------------------- > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina From erichg at mcmm.com Mon Jan 12 11:11:35 2004 From: erichg at mcmm.com (Erich Geiersberger) Date: Mon Jan 12 04:26:04 2004 Subject: [VServer] How to add/remove users Message-ID: I noticed an AddUser / RemoveUser option in Vserver Xtra (part of V4MD_Client) Ruslan told me to use these for registering users instead of directly wrirting to master.vdb. Now there are a couple of questions concerning registering users. 1. What's the right procedure? Init, then open master.vdb, then new(VServer), then AddUser? 2. After AddUser, what's the next step? Restart? Refresh? Do I need to flush master.vdb? 2. What exactly does an AddUser mean? Does it have an influence on connections? I mean: If I register 20 users for a database with 5 licenses, will they have access if only 5 of these 20 are logged in at a time? Or do I need to remove users if they exceed the limit of licenses? Erich Geiersberger Media Connect Multimedia Gratzmuellerstr. 1 86150 Augsburg, Germany Tel: +49 821/ 34752 - 0 fax: +49 821/ 34752 - 49 eMail erichg@mcmm.com http://www.mcmm.com From sunshine at public.kherson.ua Mon Jan 12 12:21:49 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Jan 12 04:29:44 2004 Subject: A handful of questions and a couple of documentation errors In-Reply-To: Message-ID: on 1/12/04 11:41 AM, Robert Brenstein at rjb@rz.uni-potsdam.de wrote: >> And yes, I think we need add SIZE LIMIT on log, as this do other DBs >> > > Overwriting log files is a bad idea in my book. For example, if there > was a system crash and the server is launched automatically after > reboot, then one can't check out the log file at all. This may be > needed for client support aside from development. > > Why don't you support log rollovers whenever the time or size limit > is reached as many servers do? I mean that a user sets in the server > config whether to expire logs by size (max file 1 mb, max file 2.2 > mb) or by time (every day at 00:05, every 3 days at 1 am, every > saturday at 9 am, every 1st of the month at 00:01). At the roll time, > the server puts a timestamp on the log file (that is renames it) and > then starts a new one. This is quite easy to implement. agree -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From erichg at mcmm.com Mon Jan 12 11:29:37 2004 From: erichg at mcmm.com (Erich Geiersberger) Date: Mon Jan 12 04:29:53 2004 Subject: [V4MD_Client] Error 363, 351 and timeouts Message-ID: When more than one user are trying to read from a table and one of them deletes a record, I sometimes get errors 363 or 351. What does that mean? Disconnects / timeout: What's the best way of tracking for errors in the following scenario. Some clients are logged in. One of them gets disconnected from the database due to the ini settings. His program (still running) will throw errors, when he tries to access the database after this type of disconnect. Do I need to track for errors on ANY Xtra call to see if he's still connected? What specific type of error should I track for? Or Is there an easier way? Erich Geiersberger Media Connect Multimedia Gratzmuellerstr. 1 86150 Augsburg, Germany Tel: +49 821/ 34752 - 0 fax: +49 821/ 34752 - 49 eMail erichg@mcmm.com http://www.mcmm.com From sunshine at public.kherson.ua Mon Jan 12 12:44:58 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Jan 12 04:45:27 2004 Subject: [VServer] How to add/remove users In-Reply-To: Message-ID: on 1/12/04 12:11 PM, Erich Geiersberger at erichg@mcmm.com wrote: Hi Erich, > I noticed an AddUser / RemoveUser option in Vserver Xtra (part of V4MD_Client) > Ruslan told me to use these for registering users instead of directly > wrirting to master.vdb. > > Now there are a couple of questions concerning registering users. > 1. What's the right procedure? Init, then open master.vdb, then > new(VServer), then AddUser? No, simpler. srv = new Xtra ("VServer", "host", "sa", "sa" ) srv.OpenSession() srv.AddUSer( "user", "passw", isadmin ) srv.CloseSession() > 2. After AddUser, what's the next step? Restart? Refresh? Do I need > to flush master.vdb? Nothing. > 2. What exactly does an AddUser mean? Does it have an influence on > connections? I mean: If I register 20 users for a database with 5 > licenses, will they have access if only 5 of these 20 are logged in > at a time? Or do I need to remove users if they exceed the limit of > licenses? AddUser adds just info Login/Password. You can have a lots of different logins. But only 5 of them can be active in the moment. ---------------------------- !!!!!!!! ATTENTION !!!!!!!!! Vserver on start have one administrator login "sa" / "sa" When you will make deployment archive, It is good idea to CHANGE this names to something special. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Mon Jan 12 12:49:12 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Jan 12 04:49:03 2004 Subject: [V4MD_Client] Error 363, 351 and timeouts In-Reply-To: Message-ID: on 1/12/04 12:29 PM, Erich Geiersberger at erichg@mcmm.com wrote: > When more than one user are trying to read from a table and one of > them deletes a record, I sometimes get errors 363 or 351. What does > that mean? Errors are listed in ValentinaKernel.pdf 363 -- LOCK cannot be set. 351 -- kFBL_CorruptedVarChar this is bad error. Your VarChar field is corrupted. you need rebuild db using XML dump. but some data can be loosed. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Mon Jan 12 12:51:55 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Jan 12 04:51:47 2004 Subject: [V4MD_Client] Error 363, 351 and timeouts In-Reply-To: Message-ID: on 1/12/04 12:29 PM, Erich Geiersberger at erichg@mcmm.com wrote: > Disconnects / timeout: > What's the best way of tracking for errors in the following scenario. > > Some clients are logged in. One of them gets disconnected from the > database due to the ini settings. > His program (still running) will throw errors, when he tries to > access the database after this type of disconnect. Do I need to track > for errors on ANY Xtra call to see if he's still connected? What > specific type of error should I track for? Or Is there an easier way? I think that if you have obtain client-side cursor, then all data are on client, and you still can iterate this cursor even to be disconnected. But as only you will do SqlSelect(). Close(). Open(), ... And many other operations it will return error. Exact code I think present in Vserver.pdf So usually, yes, you need check error code very often. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From giv at tlc.kherson.ua Mon Jan 12 13:18:41 2004 From: giv at tlc.kherson.ua (Igor Gomon) Date: Mon Jan 12 05:19:39 2004 Subject: A handful of questions and a couple of documentation errors References: Message-ID: <002401c3d8fd$f774fa70$b61226c3@giv> > > This should be reletad with the number of concurrent connections. > > Say if you know that you concurrent connection to VServer will > > almost never exceed 5 than you can leave this value by default. > > By if you know that you typically should have about 20 concurrent > > connections that it's better to increase this value to 15-20. > > Igor I think this is NOT very correct. > > People can think that if they expect 100 connections then they need > set 100 threads. This will be bad idea. IMHO I told nothing assuming that concurrent connection count is limited by the number of threads. I just told that 'it's better to increase this value to the number connections' but the server with just 1 running thread can still serve 100 simultaneous connections but it's responsibility may be very slow. So to increase responsibility it's better to set this variable(THREADS) to the reasonable value, which is, I think, for most cases is 5-20. Greater values can also be used (up to 100), but this can then affect overall server performance due to context switching. So, for the case when 100 simultaneous connections are expected I'll advise to start from values near to 30-50. Then test it. And only if the server responsibility is still slow then try to set greater values. -- Best regards, Igor Gomon ------------------------------------------------------------- e-mail: giv_ua@inbox.ru web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://listserv.macserve.net/mailman/listinfo/valentina From erichg at mcmm.com Mon Jan 12 13:23:39 2004 From: erichg at mcmm.com (Erich Geiersberger) Date: Mon Jan 12 06:25:27 2004 Subject: [V4MD_Client] Error 363, 351 and timeouts In-Reply-To: References: Message-ID: > > Disconnects / timeout: > > What's the best way of tracking for errors in the following scenario. > > > > Some clients are logged in. One of them gets disconnected from the > > database due to the ini settings. > > His program (still running) will throw errors, when he tries to > > access the database after this type of disconnect. Do I need to track > > for errors on ANY Xtra call to see if he's still connected? What > > specific type of error should I track for? Or Is there an easier way? > >I think that if you have obtain client-side cursor, then all data are on >client, and you still can iterate this cursor even to be disconnected. Hmm, but didn't you you recommended to use server side cursors instead of client side? >But as only you will do SqlSelect(). Close(). Open(), ... And many other >operations it will return error. > >Exact code I think present in Vserver.pdf > >So usually, yes, you need check error code very often. Ok From sunshine at public.kherson.ua Mon Jan 12 14:31:58 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Jan 12 06:31:49 2004 Subject: [V4MD_Client] Error 363, 351 and timeouts In-Reply-To: Message-ID: on 1/12/04 2:23 PM, Erich Geiersberger at erichg@mcmm.com wrote: >>> Disconnects / timeout: >>> What's the best way of tracking for errors in the following scenario. >>> >>> Some clients are logged in. One of them gets disconnected from the >>> database due to the ini settings. >>> His program (still running) will throw errors, when he tries to >>> access the database after this type of disconnect. Do I need to track >>> for errors on ANY Xtra call to see if he's still connected? What >>> specific type of error should I track for? Or Is there an easier way? >> >> I think that if you have obtain client-side cursor, then all data are on >> client, and you still can iterate this cursor even to be disconnected. > > Hmm, but didn't you you recommended to use server side cursors > instead of client side? Not always. 1) you MUST use server side cursor IF you want modify records, because client-side cursor is ALWAYS read-only. 2) I have recommend for developers that work with LOCAL SDK to use kServerSide in ALL or most places. But they still can use kClientside in some places where this is needed. 3) client-side cursor must NOT be used for BIG selections. but if you know that you get only 10-20 records, and you will read them, then client-side is good choice. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From erichg at mcmm.com Mon Jan 12 13:41:04 2004 From: erichg at mcmm.com (Erich Geiersberger) Date: Mon Jan 12 06:41:25 2004 Subject: [VServer] How to add/remove users In-Reply-To: References: Message-ID: >Hi Erich, > > > I noticed an AddUser / RemoveUser option in Vserver Xtra (part of >V4MD_Client) > > Ruslan told me to use these for registering users instead of directly > > wrirting to master.vdb. > > > > Now there are a couple of questions concerning registering users. > > 1. What's the right procedure? Init, then open master.vdb, then > > new(VServer), then AddUser? > >No, simpler. > > srv = new Xtra ("VServer", "host", "sa", "sa" ) > srv.OpenSession() > > srv.AddUSer( "user", "passw", isadmin ) > > srv.CloseSession() > > > > 2. After AddUser, what's the next step? Restart? Refresh? Do I need > > to flush master.vdb? > >Nothing. Fine, works. > > > 2. What exactly does an AddUser mean? Does it have an influence on > > connections? I mean: If I register 20 users for a database with 5 > > licenses, will they have access if only 5 of these 20 are logged in > > at a time? Or do I need to remove users if they exceed the limit of > > licenses? > >AddUser adds just info Login/Password. > >You can have a lots of different logins. >But only 5 of them can be active in the moment. > >---------------------------- >!!!!!!!! ATTENTION !!!!!!!!! > >Vserver on start have one administrator login "sa" / "sa" > >When you will make deployment archive, >It is good idea to CHANGE this names to something special. Yes, I already changed these. Next Problem: When a new User logs in for the first time, I think I should check if he already exists before adding him with AddUser() (Could be he just entered a wrong password) How can I check for this type of information? Erich From sunshine at public.kherson.ua Mon Jan 12 14:46:28 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Jan 12 06:46:17 2004 Subject: [VServer] How to add/remove users In-Reply-To: Message-ID: on 1/12/04 2:41 PM, Erich Geiersberger at erichg@mcmm.com wrote: >> ---------------------------- >> !!!!!!!! ATTENTION !!!!!!!!! >> >> Vserver on start have one administrator login "sa" / "sa" >> >> When you will make deployment archive, >> It is good idea to CHANGE this names to something special. > > Yes, I already changed these. > > Next Problem: > When a new User logs in for the first time, I think I should check if > he already exists before adding him with AddUser() (Could be he just > entered a wrong password) > How can I check for this type of information? Erich, Note, that AddUser() as other Vserver Xtra commands can be made ONLY by administrator. If user have enter not correct login or password he will get error about this, and must try again. But you should not worry about FIRST TIME. User self must not be able add own login/password...well only if your app logic require this... Usually admin must prepare server with logins, Inform users about their logins. And user must use them. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From erichg at mcmm.com Mon Jan 12 14:01:57 2004 From: erichg at mcmm.com (Erich Geiersberger) Date: Mon Jan 12 07:02:17 2004 Subject: [VServer] How to add/remove users In-Reply-To: References: Message-ID: > > Next Problem: > > When a new User logs in for the first time, I think I should check if > > he already exists before adding him with AddUser() (Could be he just > > entered a wrong password) > > > How can I check for this type of information? > >Erich, > >Note, that AddUser() as other Vserver Xtra commands can be made ONLY by >administrator. > >If user have enter not correct login or password he will get error about >this, and must try again. > >But you should not worry about FIRST TIME. >User self must not be able add own login/password...well only if your app >logic require this... > > >Usually admin must prepare server with logins, >Inform users about their logins. >And user must use them. I have used a different approach. Since the program knows my default master password and my default master login, the client is able to register himself on his first login. I already asked for that, but need to ask again here: is it ok to open master.vdb and read this info from there? It seems to work and I get what I need, but I am not sure if this is all right... Erich From sunshine at public.kherson.ua Mon Jan 12 16:12:12 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Jan 12 08:12:03 2004 Subject: [VServer] How to add/remove users In-Reply-To: Message-ID: on 1/12/04 3:01 PM, Erich Geiersberger at erichg@mcmm.com wrote: >> Usually admin must prepare server with logins, >> Inform users about their logins. >> And user must use them. > > I have used a different approach. > Since the program knows my default master password and my default > master login, the client is able to register himself on his first > login. I see. > I already asked for that, but need to ask again here: is it ok to > open master.vdb and read this info from there? It seems to work and I > get what I need, but I am not sure if this is all right... Yes, this is legal I think. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From fb at memedia.de Mon Jan 12 15:25:42 2004 From: fb at memedia.de (Florian Bogeschdorfer) Date: Mon Jan 12 08:25:50 2004 Subject: Changes list Message-ID: Hi Ruslan! I have installed the embedded server at 5 customers now and am very satisfied. But I would like to see very much a list on the web where I can see the changes and fixes made from version to version. Is that possible? Best regards, Florian From sunshine at public.kherson.ua Mon Jan 12 16:35:12 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Jan 12 08:35:12 2004 Subject: Changes list In-Reply-To: Message-ID: on 1/12/04 4:25 PM, Florian Bogeschdorfer at fb@memedia.de wrote: > Hi Ruslan! > > I have installed the embedded server at 5 customers now and am very > satisfied. > > But I would like to see very much a list on the web where I can see the > changes and fixes made from version to version. Is that possible? Hi Florian, You mean in Vserver? Yes, you can find such info in ReleaseNotes.pdf Although I should say, since Vserver was under very active development ReleaseNotes reflect only major parts. When all will become more stable we will do more accurate such listing. Also we develop now new site of Paradigma, And I think we will have sooner or later several dbs on site FAQ, BUGs, Fixes, TIPs, So it will work better that ReleaseNotes.pdf You should be able find only some product records. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From aclemens at xs4all.nl Mon Jan 12 16:25:11 2004 From: aclemens at xs4all.nl (Arthur Clemens) Date: Mon Jan 12 09:25:22 2004 Subject: [ANN] Cocoa demos Message-ID: <8305E668-4513-11D8-BE82-00039366A36E@xs4all.nl> I have updated the Valentina Cocoa demo for XCode: And I have created a Sort demo that shows how to sort a list based on another list. For example, to sort a list of words alphabetically OR by its modification date: This demo is also made with Cocoa, but the basis is C++, so general principles AND code can be re-used. From the Readme: ------------------------------------------------------------------------ ------------------------------------------- This demo application shows how to sort a list based on another list. For example, to sort a list of words alphabetically OR by its modification date. You might note that this application is a bit bigger than the average demo, and perhaps not very fit as an educational example. Actually, I made it as a private test application to find out how to do sorting in a fast way. I distribute this application in the hope that others can use some of the ideas I have found. Sorting difficulties generally arise when the database model is a little bit more complex and involves 1..n relations between tables. In this application, the following model is used: ? Record table: base object, holds: ? Word table: the actual content we are interested in ? FormalDescription table: has field for modification date It would have been simple if all fields were in the Record table: just sort the table based on the right field. But that's not life: I want Records to have more than one Word. The solution I found is to generate for each sort option a list of pairs: pair To sort my database on RecID, word and modification date, I need: pair pair pair There is some overhead in creating these pairs, but for a not too big database this is workable. To populate a list of Words of 100.000 records from an existing database takes around 1.5 seconds on my computer, and a list of dates only 0.3 seconds. First run Adding records: I suggest you start with adding a fairly large amount of records, say 100.000. It takes my computer around 15 seconds, so have some patience. All timings are reported in the box at the bottom. I have noticed that performance is directly related to the amount of free RAM available, so preferably quit all applications before measuring. Use 'Add and sort' to time real-world usage of adding records. Deleting: select a table row and press the Delete key. Sorting is straightforward, just click on the table headers. To time the rebuilding of a list, click the button 'Select all records'. This reads all records from the database and puts their RecIDs in the list. Only the currently sorted column is rebuilt. When a column is almost sorted, for example when a couple of records are added to a big sorted list, it is economical to randomize the list first before sorting. Randomizing is a quick operation, and sorting a randomized list takes an almost equal amount of time each sort. Searching uses only the Word table. It has the following syntax (partially borrowed from FileMakerPro): ? prefix '=' for 'starts with' ? prefix '==' for 'exact match' ? suffix '=' for 'ends on' ? just the search string for 'contains' Code background The application is made with Objective-C++, a hybrid of Objective-C and C++. Almost all implementation files therefore need to have the extension .mm. All pair lists (vectors of struct Dictionary) are stored as pointers in a STL vector in a SortArray (C++) object. Sorting pointers is quite fast, as you can see in the demo. I've tried to describe all class relationships in the UML diagram, but since this is my first UML drawing I ask you to bear with me (and point me to errors, so I can improve). ------------------------------------------------------------------------ ------------------------------------------- Arthur Clemens From dougb at finitemonkey.com Mon Jan 12 11:26:35 2004 From: dougb at finitemonkey.com (Doug Brown) Date: Mon Jan 12 10:26:41 2004 Subject: Apologies... Message-ID: Not sure if I've been bouncing e-mails to the lists or not, but apparently an e-mail heuristic on our firewall went awry. All should be well now, so sorry if there was a flurry of returns from Finite Monkey. Doug dougb@finitemonkey.com From xyzabc1010 at yahoo.com Mon Jan 12 10:41:25 2004 From: xyzabc1010 at yahoo.com (X Y) Date: Mon Jan 12 12:41:31 2004 Subject: VServer: Error with installing vserver on W2K & uninstalling on WinXP Message-ID: <20040112184125.17755.qmail@web21101.mail.yahoo.com> Hi All, I downloaded the latest version of the Valentina Server. When I installed it on W2K Server, I get the followin error installation: Installer: stop: Invalid argument I then tried it on a WinXP machine, it installed smoothly; however, when I tried to uninstall it, an error message came up. I am suspecting that the reason the install does not work on the W2K machine is due to the fact that I installed previous versions of the valentina server. I was wondering if anyone knows how to clean manually the files. Thanks __________________________________ Do you Yahoo!? Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus From sunshine at public.kherson.ua Mon Jan 12 20:52:55 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Jan 12 12:52:45 2004 Subject: VServer: Error with installing vserver on W2K & uninstalling on WinXP In-Reply-To: <20040112184125.17755.qmail@web21101.mail.yahoo.com> Message-ID: on 1/12/04 8:41 PM, X Y at xyzabc1010@yahoo.com wrote: > Hi All, > I downloaded the latest version of the Valentina > Server. When I installed it on W2K Server, I get the > followin error installation: > > Installer: stop: Invalid argument > > I then tried it on a WinXP machine, it installed > smoothly; however, when I tried to uninstall it, an > error message came up. > > I am suspecting that the reason the install does not > work on the W2K machine is due to the fact that I > installed previous versions of the valentina server. > I was wondering if anyone knows how to clean manually > the files. 1) on windows it is better avoid manually remove files. 2) on XP I think you need go to control panel "AddRemove programs" Choose Vserver, and make Remove. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From xyzabc1010 at yahoo.com Mon Jan 12 11:08:35 2004 From: xyzabc1010 at yahoo.com (X Y) Date: Mon Jan 12 13:08:46 2004 Subject: VServer: Error with installing vserver on W2K & uninstalling on WinXP In-Reply-To: Message-ID: <20040112190835.25083.qmail@web21103.mail.yahoo.com> 1. On w2k I tried installing but got the installer error. 2. On XP I tried using the add/remove program but got a error failure. --- Ruslan Zasukhin wrote: > on 1/12/04 8:41 PM, X Y at xyzabc1010@yahoo.com > wrote: > > > Hi All, > > I downloaded the latest version of the Valentina > > Server. When I installed it on W2K Server, I get > the > > followin error installation: > > > > Installer: stop: Invalid argument > > > > I then tried it on a WinXP machine, it installed > > smoothly; however, when I tried to uninstall it, > an > > error message came up. > > > > I am suspecting that the reason the install does > not > > work on the W2K machine is due to the fact that I > > installed previous versions of the valentina > server. > > I was wondering if anyone knows how to clean > manually > > the files. > > 1) on windows it is better avoid manually remove > files. > > 2) on XP I think you need go to control panel > "AddRemove programs" > Choose Vserver, and make Remove. > > -- > Best regards, > Ruslan Zasukhin [ I feel the need...the need > for speed ] > ------------------------------------------------------------- > e-mail: ruslan@paradigmasoft.com > web: http://www.paradigmasoft.com > > To subscribe to the Valentina mail list go to: > http://lists.macserve.net/mailman/listinfo/valentina > ------------------------------------------------------------- > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina __________________________________ Do you Yahoo!? Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus From fb at memedia.de Mon Jan 12 20:18:04 2004 From: fb at memedia.de (Florian Bogeschdorfer) Date: Mon Jan 12 13:18:10 2004 Subject: AW: VServer: Error with installing vserver on W2K & uninstalling onWinXP In-Reply-To: <20040112190835.25083.qmail@web21103.mail.yahoo.com> Message-ID: To my experience it is most likely that you have tried to remove some files manually, because usually the installation does not fail. DO you have the rights to install/deinstall? Try downloading the zip archive of the embedded server from the website and restore your folder manually.(most likely c:\programs\paradigma... Then open the shell (cmd window) , choose the path to the vserver.exe and execute it with option /r (be sure the service is not running) Hope that helps Florian From sunshine at public.kherson.ua Mon Jan 12 21:23:44 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Jan 12 13:23:35 2004 Subject: AW: VServer: Error with installing vserver on W2K & uninstalling onWinXP In-Reply-To: Message-ID: on 1/12/04 9:18 PM, Florian Bogeschdorfer at fb@memedia.de wrote: > To my experience it is most likely that you have tried to remove some files > manually, because usually the installation does not fail. DO you have the > rights to install/deinstall? Florian, it seems on my computer the same problem. May be something broken, Igor will check tomorrow. > Try downloading the zip archive of the embedded server from the website and > restore your folder manually.(most likely c:\programs\paradigma... > > Then open the shell (cmd window) , choose the path to the vserver.exe and > execute it with option /r (be sure the service is not running) -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From xyzabc1010 at yahoo.com Mon Jan 12 11:25:32 2004 From: xyzabc1010 at yahoo.com (X Y) Date: Mon Jan 12 13:25:41 2004 Subject: AW: VServer: Error with installing vserver on W2K & uninstalling onWinXP In-Reply-To: Message-ID: <20040112192532.4922.qmail@web21109.mail.yahoo.com> 1. Yes I have admin rights. 2. Installation on XP was ok, it was deinstallation that failed. --- Florian Bogeschdorfer wrote: > To my experience it is most likely that you have > tried to remove some files > manually, because usually the installation does not > fail. DO you have the > rights to install/deinstall? > > Try downloading the zip archive of the embedded > server from the website and > restore your folder manually.(most likely > c:\programs\paradigma... > > Then open the shell (cmd window) , choose the path > to the vserver.exe and > execute it with option /r (be sure the service is > not running) > > Hope that helps > > Florian > > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina __________________________________ Do you Yahoo!? Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus From giv at tlc.kherson.ua Tue Jan 13 09:51:18 2004 From: giv at tlc.kherson.ua (Igor Gomon) Date: Tue Jan 13 01:51:24 2004 Subject: VServer: Error with installing vserver on W2K & uninstalling onWinXP References: <20040112184125.17755.qmail@web21101.mail.yahoo.com> Message-ID: <002b01c3d9aa$097005b0$b51226c3@giv> Hi X Y, > Hi All, > I downloaded the latest version of the Valentina > Server. When I installed it on W2K Server, I get the > followin error installation: > > Installer: stop: Invalid argument > > I then tried it on a WinXP machine, it installed > smoothly; however, when I tried to uninstall it, an > error message came up. > > I am suspecting that the reason the install does not > work on the W2K machine is due to the fact that I > installed previous versions of the valentina server. > I was wondering if anyone knows how to clean manually > the files. If you still have problems with unistalling VServer I can send you fixed file VServer_NT.exe. You should then replace old executable by this one and call standard uninstall procedure. I should work now. -- Best regards, Igor Gomon ------------------------------------------------------------- e-mail: giv_ua@inbox.ru web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://listserv.macserve.net/mailman/listinfo/valentina From sunshine at public.kherson.ua Tue Jan 13 11:26:22 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Jan 13 03:26:13 2004 Subject: PATCH for Vserver_Win a55 Message-ID: Hi All, IF you have installed Vserver WIN a55 Then you will find you cannot uninstall it. To fix this problem you need 1) download http://www.paradigmasoft.com/download/VServer_win_55_patch.zip (8 KB) this archive contains file Vserver_NT.exe 2) you need drop this file into Vserver folder on your HDD to replace old one. Now you can REMOVE Valentina Server from control panel. 3) and you can download and install Vserver_win a56 where This problem also fixed. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From gregkowalski at earthlink.net Tue Jan 13 09:34:51 2004 From: gregkowalski at earthlink.net (Greg Kowalski) Date: Tue Jan 13 08:32:53 2004 Subject: SQL question Message-ID: Hello, This is my first foray into SQL so the question I have will probably seem very amateurish to most of you, but here goes: What SQL code can be used if I want a query to find a specific word (or words) within a string of words? In other words I want know if a field contains (not =) a string. For example I have a field with the string: "SQL is not as simple as you think". I would like this field to appear as a result if make a query using the keyword "SQL" or "simple" or "not as simple" etc. Thank you for your help Greg Kowalski From timdavis at amug.org Tue Jan 13 09:05:51 2004 From: timdavis at amug.org (Tim Davis) Date: Tue Jan 13 10:06:02 2004 Subject: SQL question In-Reply-To: References: Message-ID: <5BECA214-45E2-11D8-8FE8-000A95D87648@amug.org> Hi Greg, > What SQL code can be used if I want a query to find a specific word (or > words) within a string of words? In other words I want know if a field > contains (not =) a string. > > For example I have a field with the string: "SQL is not as simple as > you > think". I would like this field to appear as a result if make a query > using > the keyword "SQL" or "simple" or "not as simple" etc. Select Field1 From MyTable Where Field1 Like 'simple' no_case No_Case is an option. When you use "Like", you will need to escape GREP characters, and Valentina has a function for that. (Just escape apostrophe otherwise.) Tim Davis From valentina at panamind.com Tue Jan 13 12:41:15 2004 From: valentina at panamind.com (valentina@panamind.com) Date: Tue Jan 13 11:41:22 2004 Subject: DB design opinions Message-ID: I have an interface design where fields can have multiple values, usually displayed in a listbox. Currently I use separate tables for the fields linked to the main table. An alternate method would be to store the values as a delimited list in a VString field in the main table. I don't have a problem with either method but would like opinions from others on how they handle similar situations. Is there a disadvantage to having a high number of tables or does it matter? Gary From sunshine at public.kherson.ua Tue Jan 13 19:51:32 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Jan 13 11:51:24 2004 Subject: DB design opinions In-Reply-To: Message-ID: on 1/13/04 7:41 PM, valentina@panamind.com at valentina@panamind.com wrote: > I have an interface design where fields can have multiple values, > usually displayed in a listbox. Currently I use separate tables for the > fields linked to the main table. An alternate method would be to store > the values as a delimited list in a VString field in the main table. > > I don't have a problem with either method but would like opinions from > others on how they handle similar situations. Is there a disadvantage > to having a high number of tables or does it matter? Hi Gary, If you going to have table for each category, then this is not very good idea. It is better then, to use single table, and have field CATEGORY. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From timdavis at amug.org Tue Jan 13 10:55:11 2004 From: timdavis at amug.org (Tim Davis) Date: Tue Jan 13 11:55:18 2004 Subject: DB design opinions In-Reply-To: References: Message-ID: Hi Gary, > I have an interface design where fields can have multiple values, > usually displayed in a listbox. Currently I use separate tables for > the fields linked to the main table. An alternate method would be to > store the values as a delimited list in a VString field in the main > table. > > I don't have a problem with either method but would like opinions from > others on how they handle similar situations. Is there a disadvantage > to having a high number of tables or does it matter? I use a Preferences table to lookup certain app design values, which could be used for the delimited string you mention above. It kind of depends how dynamic you want that list to be. You might find that a table for these value provides some flexibility if you wanted to edit that list easily, or sort, etc. Tim Davis From cm_sheffield at yahoo.com Tue Jan 13 10:09:22 2004 From: cm_sheffield at yahoo.com (Chris Sheffield) Date: Tue Jan 13 12:09:28 2004 Subject: Valentina SQL: INSERT and binding Message-ID: <20040113180922.22454.qmail@web20405.mail.yahoo.com> In the ValentinaSQL doc it mentions using the INSERT (and other) statements with binding. I would like to do this, but am not quite sure how it works. I'm using the VXCMD with Revolution, but I'm accessing it's functions directly, not using Revolution's DB functions. For example, if I want to add a new record to my database, how exactly would I build the query string? The doc is a little unclear on this. Should I actually use the phrase "binded with" followed by my list of values just as it appears in the doc? Cause I've tried this and it doesn't seem to work. Or do I somehow have to pass my list of values to the Database_SQLExecute function? Any help would be most appreciated. Thanks, ===== Chris Sheffield Read Naturally www.readnaturally.com __________________________________ Do you Yahoo!? Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus From kray at sonsothunder.com Tue Jan 13 13:17:54 2004 From: kray at sonsothunder.com (Ken Ray) Date: Tue Jan 13 13:23:21 2004 Subject: Valentina SQL: INSERT and binding In-Reply-To: <20040113180922.22454.qmail@web20405.mail.yahoo.com> Message-ID: <025301c3da09$f65ac310$6901a8c0@LightningFlash> > In the ValentinaSQL doc it mentions using the INSERT > (and other) statements with binding. I would like to > do this, but am not quite sure how it works. I'm > using the VXCMD with Revolution, but I'm accessing > it's functions directly, not using Revolution's DB > functions. > > For example, if I want to add a new record to my > database, how exactly would I build the query string? If you don't need to use binding, you can do this: -- Assumes a "People" table with three fields: FirstName, LastName and Phone -- and the database reference stored in the global gMainDBRef ---- Step 1: Create an empty cursor put Valentina("SQLSelect",gMainDBRef,"SELECT * FROM People WHERE RecID=0") into tCurs ---- Step 2: Create the record as a tab-delimited string put "Ken" & tab & "Ray" & tab & "555-1212" into tRec get Valentina("Cursor_AddRecord",tCurs,tRec) ---- Step 3: Remove the cursor get Valentina("Cursor_Remove",tCurs) If you need to get the ID of the record you just created, it would look like this: put Valentina("SQLSelect",gMainDBRef,"SELECT RecID,* FROM People WHERE RecID=0") into tCurs put "" & tab & "Ken" & tab & "Ray" & tab & "555-1212" into tRec get Valentina("Cursor_AddRecord",tCurs,tRec) put Valentina("Cursor_GetField",tCurs,"RecID") into tRecID get Valentina("Cursor_Remove",tCurs) Basically, you get a cursor that contains the RecID field in it, pass it as an empty column in the record you want to add, and then Valentina fills in that column of the cursor when it adds the record. You can then retrieve it with Cursor_GetField before you dispose of the cursor. I haven't done much with binding, though... Ken Ray Sons of Thunder Software Email: kray@sonsothunder.com Web Site: http://www.sonsothunder.com/ From cm_sheffield at yahoo.com Tue Jan 13 12:04:33 2004 From: cm_sheffield at yahoo.com (Chris Sheffield) Date: Tue Jan 13 14:04:38 2004 Subject: Valentina SQL: INSERT and binding In-Reply-To: <025301c3da09$f65ac310$6901a8c0@LightningFlash> Message-ID: <20040113200433.35330.qmail@web20414.mail.yahoo.com> Thanks, Ken. That ought to do the trick. Chris --- Ken Ray wrote: > > In the ValentinaSQL doc it mentions using the > INSERT > > (and other) statements with binding. I would like > to > > do this, but am not quite sure how it works. I'm > > using the VXCMD with Revolution, but I'm accessing > > it's functions directly, not using Revolution's DB > > functions. > > > > For example, if I want to add a new record to my > > database, how exactly would I build the query > string? > > If you don't need to use binding, you can do this: > > -- Assumes a "People" table with three fields: > FirstName, LastName and > Phone > -- and the database reference stored in the global > gMainDBRef > > ---- Step 1: Create an empty cursor > put Valentina("SQLSelect",gMainDBRef,"SELECT * FROM > People WHERE > RecID=0") into tCurs > > ---- Step 2: Create the record as a tab-delimited > string > put "Ken" & tab & "Ray" & tab & "555-1212" into tRec > get Valentina("Cursor_AddRecord",tCurs,tRec) > > ---- Step 3: Remove the cursor > get Valentina("Cursor_Remove",tCurs) > > If you need to get the ID of the record you just > created, it would look > like this: > > put Valentina("SQLSelect",gMainDBRef,"SELECT RecID,* > FROM People WHERE > RecID=0") into tCurs > put "" & tab & "Ken" & tab & "Ray" & tab & > "555-1212" into tRec > get Valentina("Cursor_AddRecord",tCurs,tRec) > put Valentina("Cursor_GetField",tCurs,"RecID") into > tRecID > get Valentina("Cursor_Remove",tCurs) > > Basically, you get a cursor that contains the RecID > field in it, pass it > as an empty column in the record you want to add, > and then Valentina > fills in that column of the cursor when it adds the > record. You can then > retrieve it with Cursor_GetField before you dispose > of the cursor. > > I haven't done much with binding, though... > > Ken Ray > Sons of Thunder Software > Email: kray@sonsothunder.com > Web Site: http://www.sonsothunder.com/ > > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina __________________________________ Do you Yahoo!? Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus From erichg at mcmm.com Tue Jan 13 21:07:27 2004 From: erichg at mcmm.com (Erich Geiersberger) Date: Tue Jan 13 14:10:15 2004 Subject: [V4MD] Cross platform text Message-ID: I wonder if there is a pre-designed way to store/retrieve text within a Server database for both Mac and PC? Erich From sunshine at public.kherson.ua Tue Jan 13 22:26:18 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Jan 13 14:26:11 2004 Subject: Valentina SQL: INSERT and binding In-Reply-To: <20040113180922.22454.qmail@web20405.mail.yahoo.com> Message-ID: on 1/13/04 8:09 PM, Chris Sheffield at cm_sheffield@yahoo.com wrote: Hi Chris, > In the ValentinaSQL doc it mentions using the INSERT > (and other) statements with binding. I would like to > do this, but am not quite sure how it works. I'm > using the VXCMD with Revolution, but I'm accessing > it's functions directly, not using Revolution's DB > functions. > > For example, if I want to add a new record to my > database, how exactly would I build the query string? > The doc is a little unclear on this. Should I > actually use the phrase "binded with" followed by my > list of values just as it appears in the doc? NO. you read this in ValentinaSQL.pdf which contains ala-syntax. You need look into VXCMDReference.pdf Into function SqlExecute() for correct syntax and example for VXCMD. > Cause I've tried this and it doesn't seem to work. Or do I somehow have to > pass my list of values to the Database_SQLExecute function? > > Any help would be most appreciated. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Tue Jan 13 23:16:58 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Jan 13 15:16:48 2004 Subject: [Valentina-studio] Alpha 1.0a35 uploaded In-Reply-To: <44F20C25-45FF-11D8-998E-000A959F6B0C@valentina-db.de> Message-ID: on 1/13/04 9:32 PM, Jochen Peters at j.peters@valentina-db.de wrote: Hi Jochen, I have CC this to Valentina list :-) To warm up developers that are new and not aware about Valentina Studio, And developers that have not yet find time to look on it. > Hi guys, > > i have just uploaded Alpha 1.0a35 - Mac Build. I am now testing the Windows > Build - i will upload > it tomorrow. > > Here are the news from a35: > > Version 1.0a35 > Date: 01/13/2004 > ============== > - fixed: several "low level" bugs > - fixed: field flags for boolean fields in Property Inspector > - fixed: TAB now works in Connect dialog > - fixed: crash when closing db with open databrowser > - fixed: additional space in Lingo Codegenerator removed > > - Valentina 1.10 integrated > - Valentina Client 2a55 integrated > > - speed up of DataBrowser and SQL ResultSet > - Methods are now shown in DataBrowser and result sets (Read-Only and grey) > - numerical data in property Inspector are now stored immediatly > - "Create Database" dialog is now the same for server and local Valentina > database > - using one connection for several open Valentina Server databases > - Valentina Server databases are now shown immediatly when opening connection > - browsing of ODBC database data with DataBrowser and SQL Editor! > - Import from local and Valentina Server databases into local and server > databases - including pictures!!! > - Importing from ODBC datasource into local or server Valentina db now works! > - Setting pictures in DataBrowser!!! ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^you have forget to say: By drag & drop! > - Delete button in DataBrowser works now > As you can see one of the main work was done in the ODBC plugin. We can now > not only browse the structure of any ODBC database but also we can browse the > data in all tables!! As I understand, we can browse not onl ODBC database, but any ODBC source, e.g. Excel tables, DBF format file, yes? > So - you can use the DataBrowser for ODBC databases now in the same was as you > do it for Valentina databases. And: You can also use the SQL Editor in the > same way - you can now execute ANY SQL command against a ODBC database. > Because of these new ODBC features the Importer is now more powerfull: It is > now very easy to import data from ANY ODBC database into local and server > based Valentina databases. > (Note: BLOBs are not yet supported) > The Import between Valentina local and server databases was also improved - > now pictures are supported! ----------------------------------- > In the Databrowser it is now possible to set picture fields! To do so you must > first click once into a picture> field - as soon as you see a blinking cursor > in it you can drag any valid picture file from the desktop to the field. After > that you must press return. > Valid picture files are: > GIF, TIFF, JPEG, PCX, PNG, BMP, XPM, ICO > Please note that the GUI will be improved for this :-) Just WOW, Jochen!!! Now Vstudio can be used by (in the first turn Director) developers to populate their databases! And wow, you support now more picture formats. Do you convert them all into JPG? Or you store as IS? > Another nice new feature of the DataBrowser is that Valentina methods are > shown now. They appear in grey in a read-only column. > -- > Best regards, > Jochen Peters > PIIT GmbH > > ------------------------------------ > http://www.valentina-db.de -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Tue Jan 13 23:19:49 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Jan 13 15:19:37 2004 Subject: [V4MD][SERVER] Cross platform text In-Reply-To: Message-ID: on 1/13/04 10:07 PM, Erich Geiersberger at erichg@mcmm.com wrote: > I wonder if there is a pre-designed way to store/retrieve text within > a Server database for both Mac and PC? Hmm, in local V4MD this works. I am not sure about current versions of V4MD_Client and Vserver... We must check this. Note, for 2.0 release, most probably all text will go in UTF16, So this will not be an issue. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Wed Jan 14 00:04:47 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Jan 13 16:04:39 2004 Subject: ODBC... How ??? Message-ID: Hi Jochen, 1) I was able import records from Server database, into local database. Works great. 2) I see that if I choose in the import wizard ODBC then on next step it ask for ODBC source. Can you tell us a) what you use for tests? Filemaker and its ODBC driver? Else? b) how to set up FM ODBC source? Or else? 3) I do not see way how to connect to ODBC data source from Schema browser, and then more, how to use Data Browser on ODBC source. Please tell us how to do this. Jochen, in general I should say: EXCELLENT! I have work long time (up to time out) and I was fast, intuitive and logical! I have feel real pleasure working with Vstudio a35! Very good !!! -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From deane.venske at eduss.com Tue Jan 13 16:24:35 2004 From: deane.venske at eduss.com (Deane Venske) Date: Tue Jan 13 16:07:18 2004 Subject: Bug in latest V4RB Message-ID: Hi Ruslan & Team, I found a pretty horrible bug in Valentina today, I'm running a query : "UPDATE class SET name = 'class1' WHERE classID = 1" I made a typo though and this is what I put in "UPDATE class SET name = 'class1' WHERE classOD = 1" Instead of failing and reporting an error that the field does not exist, this query updated every record in the table, overwriting alot of data. Best Regards, -- Deane Venske - Senior Programmer www.eduss.com.au deane.venske@eduss.com +61 7 55974600 +61 405148718 Suite 29, 207 Currumburra Rd Ashmore, Queensland, 4214 Australia Notice This message and any files transmitted may contain privileged and confidential information and is intended only for the use of the addressee or entity named above. If you are not the intended recipient, please notify Eduss Limited immediately by return email or telephone 07 5597 4600 (International +61 7 55974600) and delete all copies of this message with any attachments. Any dissemination, distribution or copying of this email is strictly prohibited. Eduss Limited, disclaims liability for any loss, damage or expense however caused, arising from the sending, receipt, or use of this email and on any reliance placed upon the information provided through this service and does not guarantee the completeness or accuracy of the information. Eduss does not represent or warrant the attached files are free from computer viruses or other defects. The attached files are provided, and may only be used, on the basis that the user assumes all responsibility for any loss, damage or consequence resulting directly or indirectly from use. Any views expressed in this message are those of the original sender, except where the sender specifically states them to be the views of Eduss Limited. From deane.venske at eduss.com Wed Jan 14 08:16:43 2004 From: deane.venske at eduss.com (Deane Venske) Date: Tue Jan 13 16:16:50 2004 Subject: Bug in latest V4RB Message-ID: Hi Ruslan & Team, I found a pretty horrible bug in Valentina today, I'm running a query : "UPDATE class SET name = 'class1' WHERE classID = 1" I made a typo though and this is what I put in "UPDATE class SET name = 'class1' WHERE classOD = 1" Instead of failing and reporting an error that the field does not exist, this query updated every record in the table, overwriting alot of data. Best Regards, -- Deane Venske - Senior Programmer www.eduss.com.au deane.venske@eduss.com +61 7 55974600 +61 405148718 Suite 29, 207 Currumburra Rd Ashmore, Queensland, 4214 Australia Notice This message and any files transmitted may contain privileged and confidential information and is intended only for the use of the addressee or entity named above. If you are not the intended recipient, please notify Eduss Limited immediately by return email or telephone 07 5597 4600 (International +61 7 55974600) and delete all copies of this message with any attachments. Any dissemination, distribution or copying of this email is strictly prohibited. Eduss Limited, disclaims liability for any loss, damage or expense however caused, arising from the sending, receipt, or use of this email and on any reliance placed upon the information provided through this service and does not guarantee the completeness or accuracy of the information. Eduss does not represent or warrant the attached files are free from computer viruses or other defects. The attached files are provided, and may only be used, on the basis that the user assumes all responsibility for any loss, damage or consequence resulting directly or indirectly from use. Any views expressed in this message are those of the original sender, except where the sender specifically states them to be the views of Eduss Limited. From erichg at mcmm.com Wed Jan 14 00:34:18 2004 From: erichg at mcmm.com (Erich Geiersberger) Date: Tue Jan 13 17:35:28 2004 Subject: [V4MD][SERVER] Cross platform text In-Reply-To: References: Message-ID: > > I wonder if there is a pre-designed way to store/retrieve text within > > a Server database for both Mac and PC? > >Hmm, in local V4MD this works. > >I am not sure about current versions of V4MD_Client and Vserver... >We must check this. > >Note, for 2.0 release, most probably all text will go in UTF16, >So this will not be an issue. Fine. I don't need it at the moment. It's only that during testing I recognized that all text saved from PC has wrong chars on mac. Erich Geiersberger Media Connect Multimedia Gratzmuellerstr. 1 86150 Augsburg, Germany Tel: +49 821/ 34752 - 0 fax: +49 821/ 34752 - 49 eMail erichg@mcmm.com http://www.mcmm.com From rjb at rz.uni-potsdam.de Wed Jan 14 01:31:37 2004 From: rjb at rz.uni-potsdam.de (Robert Brenstein) Date: Tue Jan 13 18:33:28 2004 Subject: [V4MD][SERVER] Cross platform text In-Reply-To: References: Message-ID: >> > I wonder if there is a pre-designed way to store/retrieve text within >> > a Server database for both Mac and PC? >> >>Hmm, in local V4MD this works. >> >>I am not sure about current versions of V4MD_Client and Vserver... >>We must check this. >> >>Note, for 2.0 release, most probably all text will go in UTF16, >>So this will not be an issue. > >Fine. I don't need it at the moment. It's only that during testing I >recognized that all text saved from PC has wrong chars on mac. > >Erich Geiersberger > >Media Connect Multimedia >Gratzmuellerstr. 1 >86150 Augsburg, Germany Ha! We are back to the issue of needing both Language AND Character Encoding params for each text-containing field. Going to UTF16 will solve only the storage issue. You said earlier, Ruslan, that kernel will automatically convert from/to specified encoding on input and output. Or have you changed your mind and will require explicit conversions? With server things are getting more complicated since the same db may be serving Mac and Win clients at the same time. May be it is time to finally have someone on your team working on this issue :) Robert Brenstein From sunshine at public.kherson.ua Wed Jan 14 08:44:39 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Jan 14 00:44:32 2004 Subject: [V4MD][SERVER] Cross platform text In-Reply-To: Message-ID: on 1/14/04 2:31 AM, Robert Brenstein at rjb@rz.uni-potsdam.de wrote: >>> Hmm, in local V4MD this works. >>> >>> I am not sure about current versions of V4MD_Client and Vserver... >>> We must check this. >>> >>> Note, for 2.0 release, most probably all text will go in UTF16, >>> So this will not be an issue. >> >> Fine. I don't need it at the moment. It's only that during testing I >> recognized that all text saved from PC has wrong chars on mac. >> >> Erich Geiersberger >> >> Media Connect Multimedia >> Gratzmuellerstr. 1 >> 86150 Augsburg, Germany > > Ha! We are back to the issue of needing both Language AND Character > Encoding params for each text-containing field. Going to UTF16 will > solve only the storage issue. You said earlier, Ruslan, that kernel > will automatically convert from/to specified encoding on input and > output. Or have you changed your mind and will require explicit > conversions? With server things are getting more complicated since > the same db may be serving Mac and Win clients at the same time. May > be it is time to finally have someone on your team working on this > issue :) Igor work on this issue. We already have include ICU library into 2.0 engine, And change a lots of code to support internally UTF16. ICU self can do conversions. So all we will have to do, (in the worse case), Just add this additional flags/encodings to maybe server protocol, fields ... And I think right now we can fix mentioned problem in Vserver alpha, So it will work not worse of LOCAL SDKs. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Wed Jan 14 08:46:34 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Jan 14 00:46:23 2004 Subject: Bug in latest V4RB In-Reply-To: Message-ID: on 1/14/04 12:16 AM, Deane Venske at deane.venske@eduss.com wrote: Hi Deane, > I found a pretty horrible bug in Valentina today, I'm running a query : > "UPDATE class SET name = 'class1' WHERE classID = 1" > I made a typo though and this is what I put in > "UPDATE class SET name = 'class1' WHERE classOD = 1" > > Instead of failing and reporting an error that the field does not exist, > this query updated every record in the table, overwriting alot of data. Really bad. This is SQL parser glitch. In 2.0 this problem will go away. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From rjb at rz.uni-potsdam.de Wed Jan 14 11:39:02 2004 From: rjb at rz.uni-potsdam.de (Robert Brenstein) Date: Wed Jan 14 04:43:37 2004 Subject: [V4MD][SERVER] Cross platform text In-Reply-To: References: Message-ID: > > Ha! We are back to the issue of needing both Language AND Character >> Encoding params for each text-containing field. Going to UTF16 will >> solve only the storage issue. You said earlier, Ruslan, that kernel >> will automatically convert from/to specified encoding on input and >> output. Or have you changed your mind and will require explicit >> conversions? With server things are getting more complicated since >> the same db may be serving Mac and Win clients at the same time. May >> be it is time to finally have someone on your team working on this >> issue :) > >Igor work on this issue. > >We already have include ICU library into 2.0 engine, >And change a lots of code to support internally UTF16. > >ICU self can do conversions. > >So all we will have to do, (in the worse case), >Just add this additional flags/encodings to > maybe server protocol, > fields > ... > >And I think right now we can fix mentioned problem in Vserver alpha, >So it will work not worse of LOCAL SDKs. > >-- >Best regards, >Ruslan Zasukhin [ I feel the need...the need for speed ] Sounds promising. Just please avoid the mistake you did in 1.x with assuming what encoding is good for the user. I mean assuming the encoding appropriate for client platform can be a default but there must be means to specify otherwise. Robert From sunshine at public.kherson.ua Wed Jan 14 14:07:22 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Jan 14 06:07:14 2004 Subject: FIXED: [V4MD] V4MD Xtra vs. V4MD_client Xtra In-Reply-To: Message-ID: on 1/12/04 1:41 AM, Erich Geiersberger at erichg@mcmm.com wrote: >> Hi All, >> Hi Erich, >> >> Well, this was very hard and interesting hunting. >> >> As result I have found that it seems I did not correctly return error codes >> from Xtra by rules of Macromedia. >> >> I have simply return now ZERO (success) >> And now Xtra can be unloaded with no problems. >> >> Erich, so you need new builds of V4MD and V4MD_Client, yes? >> For both platforms ? > > > Thanks Ruslan, that was really fast. > Yes, new builds would be fine. Hi Erich, New builds of V4MD mac/win And V4MD_Client mac/win Uploaded as 1.10 release. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From gregkowalski at earthlink.net Wed Jan 14 11:16:51 2004 From: gregkowalski at earthlink.net (Greg Kowalski) Date: Wed Jan 14 10:14:53 2004 Subject: Truncate warning Message-ID: Hello, When creating a database, is there a way to know if any text has been truncated do to low MAXLENGTH parameter? Also, when determining MaxLength (using string or VarChar fields) is one character = 1 byte? Thank you Greg Kowalski From valentina at panamind.com Wed Jan 14 11:37:51 2004 From: valentina at panamind.com (valentina@panamind.com) Date: Wed Jan 14 10:37:55 2004 Subject: DB design opinions In-Reply-To: Message-ID: Thanks Ruslan, Tim Gary On Tuesday, January 13, 2004, at 12:55 PM, Tim Davis wrote: > Hi Gary, > >> I have an interface design where fields can have multiple values, >> usually displayed in a listbox. Currently I use separate tables for >> the fields linked to the main table. An alternate method would be to >> store the values as a delimited list in a VString field in the main >> table. >> >> I don't have a problem with either method but would like opinions >> from others on how they handle similar situations. Is there a >> disadvantage to having a high number of tables or does it matter? > > I use a Preferences table to lookup certain app design values, which > could be used for the delimited string you mention above. It kind of > depends how dynamic you want that list to be. You might find that a > table for these value provides some flexibility if you wanted to edit > that list easily, or sort, etc. > > Tim Davis From sunshine at public.kherson.ua Wed Jan 14 18:52:04 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Jan 14 10:51:58 2004 Subject: Truncate warning In-Reply-To: Message-ID: on 1/14/04 6:16 PM, Greg Kowalski at gregkowalski@earthlink.net wrote: Hi Greg, > When creating a database, is there a way to know if any text has been > truncated do to low MAXLENGTH parameter? No Greg. > Also, when determining MaxLength (using string or VarChar fields) is one > character = 1 byte? For Valentina 1.x yes. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From chuckbo at hinkles.us Wed Jan 14 12:38:39 2004 From: chuckbo at hinkles.us (chuck hinkle) Date: Wed Jan 14 12:39:26 2004 Subject: Retrieving non-string values Message-ID: <3377.134.163.253.126.1074105519.squirrel@ourwebmail.net> I don't know why I continue to be confused by this topic; it doesn't seem like it should be difficult. I have a table with a variable in it named Vsize, and it's defined as a vuShort. In my RB program, I'm having trouble moving it to a variable dimensioned as an integer. I know that if my variable were a string, I could use VSize = my_cursor.field("VSize").getstring >From what I read, it seems like I need to do VSize = vushort(my_cursor.field("VSize")) but that gives me a Type Mismatch error (perhaps because I'm trying to move a vushort to an integer?). Any advice on this one? chuck Chuck Hinkle [INTJ] "Perception is usually more persuasive than reality" From chuckbo at hinkles.us Wed Jan 14 12:38:38 2004 From: chuckbo at hinkles.us (chuck hinkle) Date: Wed Jan 14 12:39:48 2004 Subject: Retrieving non-string values Message-ID: <3365.134.163.253.126.1074105518.squirrel@ourwebmail.net> I don't know why I continue to be confused by this topic; it doesn't seem like it should be difficult. I have a table with a variable in it named Vsize, and it's defined as a vuShort. In my RB program, I'm having trouble moving it to a variable dimensioned as an integer. I know that if my variable were a string, I could use VSize = my_cursor.field("VSize").getstring >From what I read, it seems like I need to do VSize = vushort(my_cursor.field("VSize")) but that gives me a Type Mismatch error (perhaps because I'm trying to move a vushort to an integer?). Any advice on this one? chuck Chuck Hinkle [INTJ] "Perception is usually more persuasive than reality" From chuckbo at hinkles.us Wed Jan 14 12:39:58 2004 From: chuckbo at hinkles.us (chuck hinkle) Date: Wed Jan 14 12:40:40 2004 Subject: Retrieving non-string values Message-ID: <8590.134.163.253.126.1074105598.squirrel@ourwebmail.net> I don't know why I continue to be confused by this topic; it doesn't seem like it should be difficult. I have a table with a variable in it named Vsize, and it's defined as a vuShort. In my RB program, I'm having trouble moving it to a variable dimensioned as an integer. I know that if my variable were a string, I could use VSize = my_cursor.field("VSize").getstring >From what I read, it seems like I need to do VSize = vushort(my_cursor.field("VSize")) but that gives me a Type Mismatch error (perhaps because I'm trying to move a vushort to an integer?). Any advice on this one? It seems wasteful to use VSize = cdbl(my_cursor.field("VSize").getstring) for every numeric variable. chuck Chuck Hinkle [INTJ] "Perception is usually more persuasive than reality" From yeomans at desuetude.com Wed Jan 14 14:06:23 2004 From: yeomans at desuetude.com (Charles Yeomans) Date: Wed Jan 14 13:06:30 2004 Subject: Retrieving non-string values In-Reply-To: <3377.134.163.253.126.1074105519.squirrel@ourwebmail.net> References: <3377.134.163.253.126.1074105519.squirrel@ourwebmail.net> Message-ID: On Jan 14, 2004, at 1:38 PM, chuck hinkle wrote: > > > I don't know why I continue to be confused by this topic; it doesn't > seem > like it should be difficult. > > > I have a table with a variable in it named Vsize, and it's defined as a > vuShort. In my RB program, I'm having trouble moving it to a variable > dimensioned as an integer. > > I know that if my variable were a string, I could use > VSize = my_cursor.field("VSize").getstring >> From what I read, it seems like I need to do > VSize = vushort(my_cursor.field("VSize")) but that gives me a Type > Mismatch error (perhaps because I'm trying to move a vushort to an > integer?). > > Any advice on this one? > chuck > You should use my_cursor.UShortField("VSize").value, which returns an integer. Beware that calling one of these functions (like UShortField) on a field of the wrong type usually results in a crash, so you might consider adding an assertion before it that checks the type of my_cursor.Field("VSize"), at least for debug builds. Charles Yeomans From chuckbo at hinkles.us Wed Jan 14 13:35:17 2004 From: chuckbo at hinkles.us (chuck hinkle) Date: Wed Jan 14 13:35:42 2004 Subject: Retrieving non-string values In-Reply-To: References: <3377.134.163.253.126.1074105519.squirrel@ourwebmail.net> Message-ID: <6623.134.163.253.126.1074108917.squirrel@ourwebmail.net> > > On Jan 14, 2004, at 1:38 PM, chuck hinkle wrote: > >> >> >> I don't know why I continue to be confused by this topic; it doesn't >> seem >> like it should be difficult. >> >> >> I have a table with a variable in it named Vsize, and it's defined as a >> vuShort. In my RB program, I'm having trouble moving it to a variable >> dimensioned as an integer. >> >> I know that if my variable were a string, I could use >> VSize = my_cursor.field("VSize").getstring >>> From what I read, it seems like I need to do >> VSize = vushort(my_cursor.field("VSize")) but that gives me a Type >> Mismatch error (perhaps because I'm trying to move a vushort to an >> integer?). >> >> Any advice on this one? >> chuck >> > > You should use my_cursor.UShortField("VSize").value, which returns an > integer. Beware that calling one of these functions (like UShortField) > on a field of the wrong type usually results in a crash, so you might > consider adding an assertion before it that checks the type of > my_cursor.Field("VSize"), at least for debug builds. > > Charles Yeomans > I still get the Type Mismatch error when I try to compile it. I'm guessing that it's because I can't set an Integer variable equal to the result of the UShortfield command; integers are 4 bytes and vushort fields are 2 bytes. But what RB field type would be appropriate to use? Do I need to move it into a Variant? chuck From erichg at mcmm.com Wed Jan 14 21:15:45 2004 From: erichg at mcmm.com (Erich Geiersberger) Date: Wed Jan 14 14:15:56 2004 Subject: FIXED: [V4MD] V4MD Xtra vs. V4MD_client Xtra In-Reply-To: References: Message-ID: > >> Well, this was very hard and interesting hunting. > >> > >> As result I have found that it seems I did not correctly return >error codes > >> from Xtra by rules of Macromedia. > >> > >> I have simply return now ZERO (success) > >> And now Xtra can be unloaded with no problems. > >> > >> Erich, so you need new builds of V4MD and V4MD_Client, yes? > >> For both platforms ? > > > > > > Thanks Ruslan, that was really fast. > > Yes, new builds would be fine. > >Hi Erich, > >New builds of V4MD mac/win >And V4MD_Client mac/win > >Uploaded as 1.10 release. Hi Ruslan, I did not find the win new version, there's only an old one. Erich From yeomans at desuetude.com Wed Jan 14 15:38:15 2004 From: yeomans at desuetude.com (Charles Yeomans) Date: Wed Jan 14 14:38:22 2004 Subject: Retrieving non-string values In-Reply-To: <6623.134.163.253.126.1074108917.squirrel@ourwebmail.net> References: <3377.134.163.253.126.1074105519.squirrel@ourwebmail.net> <6623.134.163.253.126.1074108917.squirrel@ourwebmail.net> Message-ID: <942C6ACE-46D1-11D8-91F9-003065BB0634@desuetude.com> On Jan 14, 2004, at 2:35 PM, chuck hinkle wrote: > >> >> On Jan 14, 2004, at 1:38 PM, chuck hinkle wrote: >> >>> >>> >>> I don't know why I continue to be confused by this topic; it doesn't >>> seem >>> like it should be difficult. >>> >>> >>> I have a table with a variable in it named Vsize, and it's defined >>> as a >>> vuShort. In my RB program, I'm having trouble moving it to a variable >>> dimensioned as an integer. >>> >>> I know that if my variable were a string, I could use >>> VSize = my_cursor.field("VSize").getstring >>>> From what I read, it seems like I need to do >>> VSize = vushort(my_cursor.field("VSize")) but that gives me a >>> Type >>> Mismatch error (perhaps because I'm trying to move a vushort to an >>> integer?). >>> >>> Any advice on this one? >>> chuck >>> >> >> You should use my_cursor.UShortField("VSize").value, which returns an >> integer. Beware that calling one of these functions (like >> UShortField) >> on a field of the wrong type usually results in a crash, so you might >> consider adding an assertion before it that checks the type of >> my_cursor.Field("VSize"), at least for debug builds. >> >> Charles Yeomans >> > > > I still get the Type Mismatch error when I try to compile it. > I'm guessing that it's because I can't set an Integer variable equal to > the result of the UShortfield command; integers are 4 bytes and vushort > fields are 2 bytes. But what RB field type would be appropriate to > use? Do > I need to move it into a Variant? > Bad guess. You're confusing the structure of a UShort field with the declared type of the property UShort.Value, which is Integer. in your code above, it appears that you're declaring the type of VSize to be UShort. If so, then the following code makes no sense. VSize = my_cursor.field("VSize").getstring Here, VSize is a UShort, while GetString returns a String. Perhaps you could just post your code. Charles Yeomans From sunshine at public.kherson.ua Wed Jan 14 22:38:35 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Jan 14 14:39:06 2004 Subject: FIXED: [V4MD] V4MD Xtra vs. V4MD_client Xtra In-Reply-To: Message-ID: on 1/14/04 10:15 PM, Erich Geiersberger at erichg@mcmm.com wrote: >> Uploaded as 1.10 release. > > Hi Ruslan, > > I did not find the win new version, there's only an old one. It still marked as 1.10 But date of archives must be Jan -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Wed Jan 14 22:40:41 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Jan 14 14:40:36 2004 Subject: Retrieving non-string values In-Reply-To: <6623.134.163.253.126.1074108917.squirrel@ourwebmail.net> Message-ID: on 1/14/04 9:35 PM, chuck hinkle at chuckbo@hinkles.us wrote: >> You should use my_cursor.UShortField("VSize").value, which returns an >> integer. Beware that calling one of these functions (like UShortField) >> on a field of the wrong type usually results in a crash, so you might >> consider adding an assertion before it that checks the type of >> my_cursor.Field("VSize"), at least for debug builds. >> >> Charles Yeomans >> > > > I still get the Type Mismatch error when I try to compile it. > I'm guessing that it's because I can't set an Integer variable equal to > the result of the UShortfield command; integers are 4 bytes and vushort > fields are 2 bytes. But what RB field type would be appropriate to use? Do > I need to move it into a Variant? No, dim k as Integer k = 5 cursor.UshortField("f").value = k Is quite legal. Chuck, I believe in V4RB examples present many places where is used .value Syntax. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Wed Jan 14 22:43:37 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Jan 14 14:43:28 2004 Subject: Retrieving non-string values In-Reply-To: <3365.134.163.253.126.1074105518.squirrel@ourwebmail.net> Message-ID: on 1/14/04 8:38 PM, chuck hinkle at chuckbo@hinkles.us wrote: > > > I don't know why I continue to be confused by this topic; it doesn't seem > like it should be difficult. > > > I have a table with a variable in it named Vsize, and it's defined as a > vuShort. In my RB program, I'm having trouble moving it to a variable > dimensioned as an integer. > > I know that if my variable were a string, I could use > VSize = my_cursor.field("VSize").getstring >> From what I read, it seems like I need to do > VSize = vushort(my_cursor.field("VSize")) but that gives me a Type > Mismatch error (perhaps because I'm trying to move a vushort to an > integer?). > > Any advice on this one? Try this steps: dim fld as Vfield dim ushort_fld as VUShort fld = my_cursor.field("VSize") // must be NOT nill ushort_fld = Vushort( fld ) // this type cast it to correct class // result must be NOT nill now you can do z = ushort_fld.value Or ushort_fld.value = z -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From erichg at mcmm.com Wed Jan 14 21:59:11 2004 From: erichg at mcmm.com (Erich Geiersberger) Date: Wed Jan 14 14:59:20 2004 Subject: FIXED: [V4MD] V4MD Xtra vs. V4MD_client Xtra In-Reply-To: References: Message-ID: > > Hi Ruslan, > > > > I did not find the win new version, there's only an old one. > >It still marked as 1.10 > >But date of archives must be Jan Win client build is still december 22th. From sunshine at public.kherson.ua Wed Jan 14 23:05:56 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Jan 14 15:06:48 2004 Subject: FIXED: [V4MD] V4MD Xtra vs. V4MD_client Xtra In-Reply-To: Message-ID: on 1/14/04 10:59 PM, Erich Geiersberger at erichg@mcmm.com wrote: >>> Hi Ruslan, >>> >>> I did not find the win new version, there's only an old one. >> >> It still marked as 1.10 >> >> But date of archives must be Jan > > Win client build is still december 22th. fixed -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From chuckbo at hinkles.us Wed Jan 14 15:48:43 2004 From: chuckbo at hinkles.us (chuckbo) Date: Wed Jan 14 15:48:55 2004 Subject: Retrieving non-string values In-Reply-To: References: Message-ID: <20040114214843.4682.qmail@mail.ourinternet.us> Ruslan Zasukhin writes: > on 1/14/04 9:35 PM, chuck hinkle at chuckbo@hinkles.us wrote: > >>> You should use my_cursor.UShortField("VSize").value, which returns an >>> integer. Beware that calling one of these functions (like UShortField) >>> on a field of the wrong type usually results in a crash, so you might >>> consider adding an assertion before it that checks the type of >>> my_cursor.Field("VSize"), at least for debug builds. >>> >>> Charles Yeomans >>> >> >> >> I still get the Type Mismatch error when I try to compile it. >> I'm guessing that it's because I can't set an Integer variable equal to >> the result of the UShortfield command; integers are 4 bytes and vushort >> fields are 2 bytes. But what RB field type would be appropriate to use? Do >> I need to move it into a Variant? > > No, > > dim k as Integer > > k = 5 > > cursor.UshortField("f").value = k > > > Is quite legal. > > Chuck, I believe in V4RB examples present many places where is used .value > Syntax. > > Yes, you're right, I've been doing that without any problems. My problem is going the other way, trying to set k = to cursor.ushortfield("f"). There's no .VALUE property for the cursor, and if I just use K = cursor.UshortField("f") then I get a type mismatch. Does it mean that I can't move a UShort field into an RB Integer variable? Do I have to go through the program and redimension this variable as vushort everywhere? From sunshine at public.kherson.ua Wed Jan 14 23:56:50 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Jan 14 15:57:05 2004 Subject: Retrieving non-string values In-Reply-To: <20040114214843.4682.qmail@mail.ourinternet.us> Message-ID: on 1/14/04 11:48 PM, chuckbo at chuckbo@hinkles.us wrote: >> No, >> >> dim k as Integer >> >> k = 5 >> >> cursor.UshortField("f").value = k >> >> >> Is quite legal. >> >> Chuck, I believe in V4RB examples present many places where is used .value >> Syntax. >> >> > > Yes, you're right, I've been doing that without any problems. My problem is > going the other way, trying to set k = to cursor.ushortfield("f"). There's > no .VALUE property for the cursor, and if I just use > > K = cursor.UshortField("f") ^^^^^^^^^^^^^^^^^^^^^^^^^ but this is NOT CORRECT! you try assign into integer variable the Valentina field. Must be K = cursor.UshortField("f").value > then I get a type mismatch. Does it mean that I can't move a UShort field > into an RB Integer variable? You can of course. > Do I have to go through the program and > redimension this variable as vushort everywhere? no -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From deane.venske at eduss.com Thu Jan 15 08:09:15 2004 From: deane.venske at eduss.com (Deane Venske) Date: Wed Jan 14 16:09:24 2004 Subject: Bug in latest V4RB In-Reply-To: References: Message-ID: On Wed, 14 Jan 2004 08:46:34 +0200, Ruslan Zasukhin wrote: > on 1/14/04 12:16 AM, Deane Venske at deane.venske@eduss.com wrote: > > Hi Deane, > >> I found a pretty horrible bug in Valentina today, I'm running a query : >> "UPDATE class SET name = 'class1' WHERE classID = 1" >> I made a typo though and this is what I put in >> "UPDATE class SET name = 'class1' WHERE classOD = 1" >> >> Instead of failing and reporting an error that the field does not exist, >> this query updated every record in the table, overwriting alot of data. > > Really bad. > > This is SQL parser glitch. > In 2.0 this problem will go away. > Good to hear! Thanks. Are we getting close to seeing a beta of 2.0? -- Deane Venske - Senior Programmer www.eduss.com.au deane.venske@eduss.com +61 7 55974600 +61 405148718 Suite 29, 207 Currumburra Rd Ashmore, Queensland, 4214 Australia Notice This message and any files transmitted may contain privileged and confidential information and is intended only for the use of the addressee or entity named above. If you are not the intended recipient, please notify Eduss Limited immediately by return email or telephone 07 5597 4600 (International +61 7 55974600) and delete all copies of this message with any attachments. Any dissemination, distribution or copying of this email is strictly prohibited. Eduss Limited, disclaims liability for any loss, damage or expense however caused, arising from the sending, receipt, or use of this email and on any reliance placed upon the information provided through this service and does not guarantee the completeness or accuracy of the information. Eduss does not represent or warrant the attached files are free from computer viruses or other defects. The attached files are provided, and may only be used, on the basis that the user assumes all responsibility for any loss, damage or consequence resulting directly or indirectly from use. Any views expressed in this message are those of the original sender, except where the sender specifically states them to be the views of Eduss Limited. From dave at Parizek.com Wed Jan 14 16:03:21 2004 From: dave at Parizek.com (Dave Parizek) Date: Wed Jan 14 17:03:29 2004 Subject: question on using SQL string functions In-Reply-To: References: Message-ID: I am running the following query from within Valentina Studio: UPDATE Item set storageloc = LEFT(Sku, (locate(Sku, '-')-1)) Sku and storageloc are fields of the table. Sku's structure is something like this: '1032-10200' I would expect storageloc to become '1032' but instead it becomes 'LEFT' What am I doing wrong? --Dave -- _______________________________________________ Dave Parizek Bookseller Dave@Parizek.com From deane.venske at eduss.com Thu Jan 15 09:50:40 2004 From: deane.venske at eduss.com (Deane Venske) Date: Wed Jan 14 17:50:48 2004 Subject: question on using SQL string functions In-Reply-To: References: Message-ID: > I am running the following query from within Valentina Studio: > > UPDATE Item set storageloc = LEFT(Sku, (locate(Sku, '-')-1)) > > Sku and storageloc are fields of the table. Sku's structure is > something like this: '1032-10200' > > I would expect storageloc to become '1032' > > but instead it becomes 'LEFT' > > What am I doing wrong? > > --Dave Hi Dave, I'm pretty sure this wont be able to do this until version 2.0 is ready. I'm looking forward to this too, being able to use functions inside of queries. -- Deane Venske - Senior Programmer www.eduss.com.au deane.venske@eduss.com +61 7 55974600 +61 405148718 Suite 29, 207 Currumburra Rd Ashmore, Queensland, 4214 Australia Notice This message and any files transmitted may contain privileged and confidential information and is intended only for the use of the addressee or entity named above. If you are not the intended recipient, please notify Eduss Limited immediately by return email or telephone 07 5597 4600 (International +61 7 55974600) and delete all copies of this message with any attachments. Any dissemination, distribution or copying of this email is strictly prohibited. Eduss Limited, disclaims liability for any loss, damage or expense however caused, arising from the sending, receipt, or use of this email and on any reliance placed upon the information provided through this service and does not guarantee the completeness or accuracy of the information. Eduss does not represent or warrant the attached files are free from computer viruses or other defects. The attached files are provided, and may only be used, on the basis that the user assumes all responsibility for any loss, damage or consequence resulting directly or indirectly from use. Any views expressed in this message are those of the original sender, except where the sender specifically states them to be the views of Eduss Limited. From dave at Parizek.com Wed Jan 14 20:19:44 2004 From: dave at Parizek.com (Dave Parizek) Date: Wed Jan 14 21:19:54 2004 Subject: question on using SQL string functions In-Reply-To: References: Message-ID: >>I am running the following query from within Valentina Studio: >> >>UPDATE Item set storageloc = LEFT(Sku, (locate(Sku, '-')-1)) >> >>Sku and storageloc are fields of the table. Sku's structure is >>something like this: '1032-10200' >> >>I would expect storageloc to become '1032' >> >>but instead it becomes 'LEFT' >> >>What am I doing wrong? >> >>--Dave > >Hi Dave, > >I'm pretty sure this wont be able to do this until version 2.0 is >ready. I'm looking forward to this too, being able to use functions >inside of queries. > If you can't do them inside of queries, can you use them some other way? It seems strange that they are documented in the sql pdf if you can't use them yet. Kind of almost false advertising... --Dave -- _______________________________________________ Dave Parizek Bookseller Dave@Parizek.com From deane.venske at eduss.com Thu Jan 15 14:09:52 2004 From: deane.venske at eduss.com (Deane Venske) Date: Wed Jan 14 22:10:01 2004 Subject: question on using SQL string functions In-Reply-To: References: Message-ID: On Wed, 14 Jan 2004 20:19:44 -0700, Dave Parizek wrote: >>> I am running the following query from within Valentina Studio: >>> >>> UPDATE Item set storageloc = LEFT(Sku, (locate(Sku, '-')-1)) >>> >>> Sku and storageloc are fields of the table. Sku's structure is >>> something like this: '1032-10200' >>> >>> I would expect storageloc to become '1032' >>> >>> but instead it becomes 'LEFT' >>> >>> What am I doing wrong? >>> >>> --Dave >> >> Hi Dave, >> >> I'm pretty sure this wont be able to do this until version 2.0 is >> ready. I'm looking forward to this too, being able to use functions >> inside of queries. >> > > If you can't do them inside of queries, can you use them some other > way? It seems strange that they are documented in the sql pdf if you > can't use them yet. Kind of almost false advertising... > > --Dave > They can be used in queries, but only in this context : SELECT LEFT('1032-10200', (locate('1032-10200', '-')-1)) Which will return the result. It cannot be used in conjunctions with lookups to check actual values in the database. I often find I need to combine data or rip it apart like you've done. Some times I like adding things to the data, like for monetary values I like doing "SELECT '$' + Cost FROM items", but alas until v2.0 we can't do this. 2 point 0, 2 point 0, 2 point 0, 2 point 0, 2 point 0, 2 point 0, 2 point 0, 2 point 0, 2 point 0, 2 point 0!!! -- Deane Venske - Senior Programmer www.eduss.com.au deane.venske@eduss.com +61 7 55974600 +61 405148718 Suite 29, 207 Currumburra Rd Ashmore, Queensland, 4214 Australia Notice This message and any files transmitted may contain privileged and confidential information and is intended only for the use of the addressee or entity named above. If you are not the intended recipient, please notify Eduss Limited immediately by return email or telephone 07 5597 4600 (International +61 7 55974600) and delete all copies of this message with any attachments. Any dissemination, distribution or copying of this email is strictly prohibited. Eduss Limited, disclaims liability for any loss, damage or expense however caused, arising from the sending, receipt, or use of this email and on any reliance placed upon the information provided through this service and does not guarantee the completeness or accuracy of the information. Eduss does not represent or warrant the attached files are free from computer viruses or other defects. The attached files are provided, and may only be used, on the basis that the user assumes all responsibility for any loss, damage or consequence resulting directly or indirectly from use. Any views expressed in this message are those of the original sender, except where the sender specifically states them to be the views of Eduss Limited. From forgete at cafederic.com Wed Jan 14 23:17:22 2004 From: forgete at cafederic.com (Eric Forget) Date: Wed Jan 14 22:21:11 2004 Subject: [VSDK] LEFT() broken in 1.10? Message-ID: Hi Ruslan, I have an SQL query: SELECT RecID FROM Table1 WHERE LEFT(Field1, 1) = 'p' It works fine with ViSQL built with 1.98. However with VSDK.framework 1.10 SE (Special edition with Mach-O mutex) it doesn't work. It returns no error with 0 record. Any idea? Eric ___________________________________________________________________ Eric Forget Cafederic ForgetE@cafederic.com Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684> From sunshine at public.kherson.ua Thu Jan 15 09:09:08 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jan 15 01:17:20 2004 Subject: [VSDK] LEFT() broken in 1.10? In-Reply-To: Message-ID: on 1/15/04 6:17 AM, Eric Forget at forgete@cafederic.com wrote: > Hi Ruslan, > > I have an SQL query: > > SELECT RecID FROM Table1 WHERE LEFT(Field1, 1) = 'p' > > It works fine with ViSQL built with 1.98. However with VSDK.framework 1.10 > SE (Special edition with Mach-O mutex) it doesn't work. It returns no error > with 0 record. > > Any idea? Hi Eirc, Please check it with viSQL built on 1.10 and your db Or you can use latest Valentina Studio a35 IF it works, then problem again in the GCC build. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Thu Jan 15 09:17:09 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jan 15 01:17:26 2004 Subject: question on using SQL string functions In-Reply-To: Message-ID: on 1/15/04 6:09 AM, Deane Venske at deane.venske@eduss.com wrote: > On Wed, 14 Jan 2004 20:19:44 -0700, Dave Parizek wrote: > >>>> I am running the following query from within Valentina Studio: >>>> >>>> UPDATE Item set storageloc = LEFT(Sku, (locate(Sku, '-')-1)) >>>> >>>> Sku and storageloc are fields of the table. Sku's structure is >>>> something like this: '1032-10200' >>>> >>>> I would expect storageloc to become '1032' >>>> >>>> but instead it becomes 'LEFT' >>>> >>>> What am I doing wrong? >>>> >>>> --Dave >>> >>> Hi Dave, >>> >>> I'm pretty sure this wont be able to do this until version 2.0 is >>> ready. I'm looking forward to this too, being able to use functions >>> inside of queries. >>> >> >> If you can't do them inside of queries, can you use them some other >> way? It seems strange that they are documented in the sql pdf if you >> can't use them yet. Kind of almost false advertising... Hi Dave, Functions listed in the ValentinaSQL.pdf can be used inside of BaseObject methods. BaseObject methods is powerful feature, and you need read about them if you did not yet. Using BaseObject methods, you can get in 80% the same functionality. In your above case, although, you need UPDATE by EXPR. This is not implemented in 1.x. Only UPDATE by CONST is implemented. > They can be used in queries, but only in this context : > > SELECT LEFT('1032-10200', (locate('1032-10200', '-')-1)) ^^^^^^^^^^^^^^^^^^^^ Deane, not very correct. Function LEFT() btw only it can be used in the WHERE clause select ... WHERE left( fld, 5 ) = 'aaaaa' > Which will return the result. It cannot be used in conjunctions with > lookups to check actual values in the database. Deane, again not very correct. Functions can be used for search and sorting, but via BaseObject Methods. > I often find I need to > combine data or rip it apart like you've done. Some times I like adding > things to the data, like for monetary values I like doing "SELECT '$' > + Cost FROM items", but alas until v2.0 we can't do this. Yes, in 2.0 this works. SELECT sin(5) SELECT 3 + 2 SELECT '$ + Cost FROM items -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Thu Jan 15 09:17:42 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jan 15 01:17:34 2004 Subject: Bug in latest V4RB In-Reply-To: Message-ID: on 1/15/04 12:09 AM, Deane Venske at deane.venske@eduss.com wrote: >> This is SQL parser glitch. >> In 2.0 this problem will go away. >> > > Good to hear! Thanks. Are we getting close to seeing a beta of 2.0? :-) With each day! We already have start port V4MD and C++ SDK client to 2.0 API. Although engine itself is not ready yet for beta -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From forgete at cafederic.com Thu Jan 15 02:34:43 2004 From: forgete at cafederic.com (Eric Forget) Date: Thu Jan 15 01:34:34 2004 Subject: [VSDK] LEFT() broken in 1.10? In-Reply-To: Message-ID: > Please check it with viSQL built on 1.10 and your db > Or you can use latest Valentina Studio a35 > > IF it works, then problem again in the GCC build. It works with ViSQL built on 1.10... ?ric ___________________________________________________________________ Eric Forget Cafederic ForgetE@cafederic.com Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684> From forgete at cafederic.com Thu Jan 15 02:56:11 2004 From: forgete at cafederic.com (Eric Forget) Date: Thu Jan 15 01:59:05 2004 Subject: [SQL] Related table question Message-ID: Hi, I have 2 tables: Table1 has some fields... Table "Keyword" has: VDK_ObjectPtr mTable1; VDK_String mName; If I query SELECT DISTINCT Table1.RecID FROM Table1, Keyword WHERE Keyword.Name = 'me' I will have all the records of Table1 that have a related Keyword.Name = 'me'. For the reverse I tried: SELECT DISTINCT Table1.RecID FROM Table1, Keyword WHERE Keyword.Name <> 'me' This will works only if the record of Table1 has at least 1 related Keyword relation. If it has not it is excluded. How can I include those? Eric ___________________________________________________________________ Eric Forget Cafederic ForgetE@cafederic.com Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684> From sunshine at public.kherson.ua Thu Jan 15 10:23:30 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jan 15 02:23:22 2004 Subject: [SQL] Related table question In-Reply-To: Message-ID: on 1/15/04 9:56 AM, Eric Forget at forgete@cafederic.com wrote: > Hi, > > I have 2 tables: > > Table1 has some fields... > > Table "Keyword" has: > > VDK_ObjectPtr mTable1; > VDK_String mName; > > If I query > > SELECT DISTINCT Table1.RecID FROM Table1, Keyword WHERE Keyword.Name = 'me' > > I will have all the records of Table1 that have a related Keyword.Name = > 'me'. > > For the reverse I tried: > > SELECT DISTINCT Table1.RecID FROM Table1, Keyword WHERE Keyword.Name <> 'me' > > This will works only if the record of Table1 has at least 1 related Keyword > relation. If it has not it is excluded. How can I include those? You need to use LEFT OUTER JOIN SELECT DISTINCT Table1.RecID FROM Table1, Keyword WHERE Table1.RecID *= Keyword.mTable1 AND Keyword.Name <> 'me' -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From fb at memedia.de Thu Jan 15 09:37:48 2004 From: fb at memedia.de (Florian Bogeschdorfer) Date: Thu Jan 15 02:37:54 2004 Subject: A55 -> a56 Message-ID: Ruslan, would you please update the server zip archive to .56 too, I need to install it 3 hours... Best regards, Florian From sunshine at public.kherson.ua Thu Jan 15 10:44:46 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jan 15 02:44:41 2004 Subject: A55 -> a56 In-Reply-To: Message-ID: on 1/15/04 10:37 AM, Florian Bogeschdorfer at fb@memedia.de wrote: > Ruslan, would you please update the server zip archive to .56 too, I need to > install it 3 hours... DONE -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From fb at memedia.de Thu Jan 15 09:53:49 2004 From: fb at memedia.de (Florian Bogeschdorfer) Date: Thu Jan 15 02:53:54 2004 Subject: AW: A55 -> a56 In-Reply-To: Message-ID: Very fast. Thank you Florian > -----Urspr?ngliche Nachricht----- > Von: valentina-bounces@lists.macserve.net > [mailto:valentina-bounces@lists.macserve.net] Im Auftrag von > Ruslan Zasukhin > Gesendet: Donnerstag, 15. Januar 2004 09:45 > An: valentina@lists.macserve.net > Betreff: Re: A55 -> a56 > > on 1/15/04 10:37 AM, Florian Bogeschdorfer at fb@memedia.de wrote: > > > Ruslan, would you please update the server zip archive to > .56 too, I > > need to install it 3 hours... > > DONE From jda at his.com Thu Jan 15 09:23:09 2004 From: jda at his.com (jda) Date: Thu Jan 15 08:23:18 2004 Subject: Database corruption Message-ID: Hi Ruslan, I have a user who reproducibly gets a corrupted database with time. He restores an original, and over time it grows and becomes corrupted. Luckily, he has sent me a copy of the db just prior to its becoming corrupted, and a copy that is corrupted (meaning, can't be opened). I've run diagnose on them, and found that the "pre-corrupt" version has this problem -----> Field: "gDocumentPaths' of type Text Problems found! (!) Minor problem: exists 762 orphan segments.(indicate mistake in algorithm.) The corrupt version won't open in VStudio, and gives Valentina error = -35 The gDocumentPaths Text field contains text mixed with zeros. Yes, I know now it shouldn't, but not when it was designed 2 years ago. You later said this shouldn't be done, but shouldn't cause any problems. Any idea of what's going on? Would sending you these databases help? Thanks, Jon From erichg at mcmm.com Thu Jan 15 16:02:06 2004 From: erichg at mcmm.com (Erich Geiersberger) Date: Thu Jan 15 09:02:39 2004 Subject: Base Object Problems Message-ID: Hi Ruslan, Valentina Application 1.10 finds errors in all boolean fields of my database. The errors are all like: Table has 1312 physical records, so Bool field must have length = 164 but is 165 or Table has 936 physical records, so Bool field must have length = 117 but is 118 What does that mean? Erich From sunshine at public.kherson.ua Thu Jan 15 18:26:46 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jan 15 10:26:40 2004 Subject: Base Object Problems In-Reply-To: Message-ID: on 1/15/04 5:02 PM, Erich Geiersberger at erichg@mcmm.com wrote: Hi Erich, > Valentina Application 1.10 finds errors in all boolean fields of my database. Sometimes. Yes? Diagnose is wrong. Bug. > The errors are all like: > Table has 1312 physical records, so Bool field must have length = 164 > but is 165 > or > Table has 936 physical records, so Bool field must have length = 117 but is > 118 > > What does that mean? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Thu Jan 15 18:30:35 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jan 15 10:30:26 2004 Subject: Database corruption In-Reply-To: Message-ID: on 1/15/04 4:23 PM, jda at jda@his.com wrote: Hi Jon, > I have a user who reproducibly gets a corrupted database with time. > He restores an original, and over time it grows and becomes corrupted. > > Luckily, he has sent me a copy of the db just prior to its becoming > corrupted, and a copy that is corrupted (meaning, can't be opened). > > I've run diagnose on them, and found that the "pre-corrupt" version > has this problem > > -----> Field: "gDocumentPaths' of type Text > Problems found! > > (!) Minor problem: exists 762 orphan segments.(indicate mistake in algorithm.) > > > The corrupt version won't open in VStudio, and gives > > Valentina error = -35 -35 nsvErr No such volume; volume not found > The gDocumentPaths Text field contains text mixed with zeros. Yes, I > know now it shouldn't, but not when it was designed 2 years ago. You > later said this shouldn't be done, but shouldn't cause any problems. > > Any idea of what's going on? Would sending you these databases help? In the first turn please send me corrupted db. Deal is that orphan segments are not fatal problem. Vstudio still must open it. I want to see reason why it fails -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From leemiller at madisongrp.com Thu Jan 15 11:42:05 2004 From: leemiller at madisongrp.com (Lee Miller) Date: Thu Jan 15 10:42:14 2004 Subject: New to Valentina Message-ID: <5.2.0.9.0.20040115114133.02da39c0@mail.madisongrp.com> I have some FoxPro (not Visual FoxPro) standalone tables I would like to import. Since the examples do not cover this directly, i would like some suggestions on an approach. Thanks Lee Miller From forgete at cafederic.com Thu Jan 15 11:47:07 2004 From: forgete at cafederic.com (Eric Forget) Date: Thu Jan 15 10:47:15 2004 Subject: [SQL] Related table question In-Reply-To: Message-ID: > You need to use LEFT OUTER JOIN > > SELECT DISTINCT Table1.RecID > FROM Table1, Keyword > WHERE Table1.RecID *= Keyword.mTable1 AND > Keyword.Name <> 'me' This almost works. If I change it to something like: SELECT DISTINCT Table1.RecID, Table1.Name FROM Table1, Keyword WHERE Table1.RecID *= Keyword.mTable1 AND Keyword.Name <> 'me' Or SELECT DISTINCT Table1.RecID FROM Table1, Keyword WHERE Table1.RecID *= Keyword.mTable1 AND Keyword.Name <> 'me' ORDER BY Table1.Name Then all the records are returned. It looks like the "Keyword.Name <> 'me'" is unused. Is it normal? Eric ___________________________________________________________________ Eric Forget Cafederic ForgetE@cafederic.com Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684> From sunshine at public.kherson.ua Thu Jan 15 18:46:14 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jan 15 10:48:43 2004 Subject: New to Valentina In-Reply-To: <5.2.0.9.0.20040115114133.02da39c0@mail.madisongrp.com> Message-ID: on 1/15/04 6:42 PM, Lee Miller at leemiller@madisongrp.com wrote: > I have some FoxPro (not Visual FoxPro) standalone tables I would like to > import. Since the examples do not cover this directly, i would like some > suggestions on an approach. Hi Lee, I recommend look on ODBC_Valentina utility. You can find it on any download page. I think FoxPro have ODBC driver. So you will be able easy import into Valentina via ODBC. NOTE, you need at first create in Valentina empty tables. ------- Other good way -- ASCII file import/export, table by table -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Thu Jan 15 18:53:52 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jan 15 10:53:47 2004 Subject: [SQL] Related table question In-Reply-To: Message-ID: on 1/15/04 6:47 PM, Eric Forget at forgete@cafederic.com wrote: >> You need to use LEFT OUTER JOIN >> >> SELECT DISTINCT Table1.RecID >> FROM Table1, Keyword >> WHERE Table1.RecID *= Keyword.mTable1 AND >> Keyword.Name <> 'me' > > This almost works. If I change it to something like: > > SELECT DISTINCT Table1.RecID, Table1.Name > FROM Table1, Keyword > WHERE Table1.RecID *= Keyword.mTable1 AND > Keyword.Name <> 'me' > > Or > > SELECT DISTINCT Table1.RecID > FROM Table1, Keyword > WHERE Table1.RecID *= Keyword.mTable1 AND > Keyword.Name <> 'me' > ORDER BY Table1.Name > > Then all the records are returned. It looks like the "Keyword.Name <> 'me'" > is unused. Is it normal? Do you get result records with 'me' ? Not sure if this is correct -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Thu Jan 15 18:49:31 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jan 15 10:53:55 2004 Subject: test Message-ID: -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From forgete at cafederic.com Thu Jan 15 12:24:24 2004 From: forgete at cafederic.com (Eric Forget) Date: Thu Jan 15 11:27:25 2004 Subject: [SQL] Related table question In-Reply-To: Message-ID: >>> You need to use LEFT OUTER JOIN >>> >>> SELECT DISTINCT Table1.RecID >>> FROM Table1, Keyword >>> WHERE Table1.RecID *= Keyword.mTable1 AND >>> Keyword.Name <> 'me' >> >> This almost works. If I change it to something like: >> >> SELECT DISTINCT Table1.RecID, Table1.Name >> FROM Table1, Keyword >> WHERE Table1.RecID *= Keyword.mTable1 AND >> Keyword.Name <> 'me' >> >> Or >> >> SELECT DISTINCT Table1.RecID >> FROM Table1, Keyword >> WHERE Table1.RecID *= Keyword.mTable1 AND >> Keyword.Name <> 'me' >> ORDER BY Table1.Name >> >> Then all the records are returned. It looks like the "Keyword.Name <> 'me'" >> is unused. Is it normal? > > Do you get result records with 'me' ? I'm not sure to understand your question. It returns all the record, even the one that have a related keyword.Name = 'me'! Eric ___________________________________________________________________ Eric Forget Cafederic ForgetE@cafederic.com Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684> From sunshine at public.kherson.ua Thu Jan 15 20:15:42 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jan 15 12:15:42 2004 Subject: [SQL] Related table question In-Reply-To: Message-ID: on 1/15/04 7:24 PM, Eric Forget at forgete@cafederic.com wrote: >>> This almost works. If I change it to something like: >>> >>> SELECT DISTINCT Table1.RecID, Table1.Name >>> FROM Table1, Keyword >>> WHERE Table1.RecID *= Keyword.mTable1 AND >>> Keyword.Name <> 'me' >>> >>> Or >>> >>> SELECT DISTINCT Table1.RecID >>> FROM Table1, Keyword >>> WHERE Table1.RecID *= Keyword.mTable1 AND >>> Keyword.Name <> 'me' >>> ORDER BY Table1.Name >>> >>> Then all the records are returned. It looks like the "Keyword.Name <> 'me'" >>> is unused. Is it normal? >> >> Do you get result records with 'me' ? > > I'm not sure to understand your question. It returns all the record, even > the one that have a related keyword.Name = 'me'! Eric, I have made simple test in Valentina Studio. Table A { a1 } 1 2 3 Table B { ptr ,b1 } 1 1 1 2 1 3 2 1 2 2 Now when I do select * from a, B WHERE a.recID *= b.ptr and b.b1 <> 1 I get a ptr b1 1 1 2 1 1 3 2 2 2 3 null null So query works right. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From forgete at cafederic.com Thu Jan 15 14:20:01 2004 From: forgete at cafederic.com (Eric Forget) Date: Thu Jan 15 13:23:30 2004 Subject: [SQL] Related table question In-Reply-To: Message-ID: > Table A { a1 } > > 1 > 2 > 3 > > > Table B { ptr ,b1 } > > 1 1 > 1 2 > 1 3 > 2 1 > 2 2 > > Now when I do > > select * > from a, B > WHERE a.recID *= b.ptr > and b.b1 <> 1 > > > I get > > a ptr b1 > 1 1 2 > 1 1 3 > 2 2 2 > 3 null null > > > So query works right. But this is not what I need. I need something like: select A.RecID from A, B WHERE A.recID *= b.ptr and B.b1 <> 1 Then I get RecID 1 1 1 1 2 2 3 3 Which is not what I want! Eric ___________________________________________________________________ Eric Forget Cafederic ForgetE@cafederic.com Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684> From sunshine at public.kherson.ua Thu Jan 15 21:42:52 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jan 15 13:42:47 2004 Subject: [SQL] Related table question In-Reply-To: Message-ID: on 1/15/04 9:20 PM, Eric Forget at forgete@cafederic.com wrote: >> Table A { a1 } >> >> 1 >> 2 >> 3 >> >> >> Table B { ptr ,b1 } >> >> 1 1 >> 1 2 >> 1 3 >> 2 1 >> 2 2 >> >> Now when I do >> >> select * >> from a, B >> WHERE a.recID *= b.ptr >> and b.b1 <> 1 >> >> >> I get >> >> a ptr b1 >> 1 1 2 >> 1 1 3 >> 2 2 2 >> 3 null null >> >> >> So query works right. > > But this is not what I need. I need something like: > > select A.RecID > from A, B > WHERE A.recID *= b.ptr > and B.b1 <> 1 > > Then I get > > RecID > 1 1 > 1 1 > 2 2 > 3 3 ^^^^^^^^^^^^^^ why 2 columns if you SELECT A.RecID only. > Which is not what I want! Btw, please show what you WANT to get from above 2 tables? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From forgete at cafederic.com Thu Jan 15 14:48:24 2004 From: forgete at cafederic.com (Eric Forget) Date: Thu Jan 15 13:48:51 2004 Subject: [SQL] Related table question In-Reply-To: Message-ID: >> Then I get >> >> RecID >> 1 1 >> 1 1 >> 2 2 >> 3 3 > ^^^^^^^^^^^^^^ why 2 columns if you SELECT A.RecID only. Sorry, the first column is the fixed column of VStudio. >> Which is not what I want! > > Btw, please show what you WANT to get from above 2 tables? A.RecID 1 2 I know I'm missing the DISTINCT, but I thought it was outside the dicussion. Eric ___________________________________________________________________ Eric Forget Cafederic ForgetE@cafederic.com Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684> From forgete at cafederic.com Thu Jan 15 16:53:10 2004 From: forgete at cafederic.com (Eric Forget) Date: Thu Jan 15 15:53:13 2004 Subject: [SQL] Bug with DISTINCT? Message-ID: Hi, I created one Table A with one field s1 (string[20]) with those values: '2004-01-15' '2004-01-14' With the following query: Select RecID from A where s1 < '2004-01-15' The result is: RecID 2 Which is fine. However with the query: Select DISTINCT RecID from A where s1 < '2004-01-15' The result is empty. I believe it should have returned the same thing with this data. I've tried it with Vstudio. Eric ___________________________________________________________________ Eric Forget Cafederic ForgetE@cafederic.com Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684> From sunshine at public.kherson.ua Fri Jan 16 00:08:43 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jan 15 16:09:32 2004 Subject: [SQL] Related table question In-Reply-To: Message-ID: on 1/15/04 9:48 PM, Eric Forget at forgete@cafederic.com wrote: >> Btw, please show what you WANT to get from above 2 tables? > > A.RecID > 1 > 2 This is what you need? ----------------------------- Then I offer you simplest way: Table A { a1 } 1 2 3 Table B { ptr ,b1 } 1 1 1 2 1 3 2 1 2 2 And now you do simply: SELECT DISTINCT ptr FROM B -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Fri Jan 16 00:11:33 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jan 15 16:11:22 2004 Subject: [SQL] Bug with DISTINCT? In-Reply-To: Message-ID: on 1/15/04 11:53 PM, Eric Forget at forgete@cafederic.com wrote: > Hi, > > I created one Table A with one field s1 (string[20]) with those values: > > '2004-01-15' > '2004-01-14' > > With the following query: > > Select RecID from A where s1 < '2004-01-15' > > The result is: > > RecID > 2 > > Which is fine. However with the query: > > Select DISTINCT RecID from A where s1 < '2004-01-15' > > The result is empty. I believe it should have returned the same thing with > this data. I've tried it with Vstudio. Eric, Please note, RecID field not works correctly if you use it in ORDER BY. Because sorting on RecID was not made. Mainly because I did think this is not needed. DISTINCT also works on SORT. I think this explain your result. --- Exists simple workaround. Make BaseObject method of ULONG type which = RecID This BaseObject methods will work with sorting. Although it will add one index to table. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From forgete at cafederic.com Thu Jan 15 18:49:19 2004 From: forgete at cafederic.com (Eric Forget) Date: Thu Jan 15 17:49:25 2004 Subject: [SQL] Related table question In-Reply-To: Message-ID: >>> Btw, please show what you WANT to get from above 2 tables? >> >> A.RecID >> 1 >> 2 > > This is what you need? > > > ----------------------------- > Then I offer you simplest way: Seriously... ;-) This is the result I want with the dataset you provided. But I need to get it with "B.b1 <> 1". This is what the user provided. Eric ___________________________________________________________________ Eric Forget Cafederic ForgetE@cafederic.com Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684> From forgete at cafederic.com Thu Jan 15 18:58:17 2004 From: forgete at cafederic.com (Eric Forget) Date: Thu Jan 15 17:58:23 2004 Subject: [SQL] Bug with DISTINCT? In-Reply-To: Message-ID: > Please note, > > RecID field not works correctly if you use it in ORDER BY. So when I query "SELECT DISTINCT RecID ..." there is in implicit "ORDER BY RecID"? Is it what you means? Eric ___________________________________________________________________ Eric Forget Cafederic ForgetE@cafederic.com Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684> From erichg at mcmm.com Fri Jan 16 01:26:26 2004 From: erichg at mcmm.com (Erich Geiersberger) Date: Thu Jan 15 18:29:03 2004 Subject: [V4MD] Errors 351 and 363 Message-ID: Hi Ruslan, I have a couple of questions. Two or more clients are reading from the same table with server side cursors and read permission (kreadWrite = 2) One of them tries to write to a record which is selected by one of the other clients cursors. He creates a new cursor with readWrite permission (kreadWrite = 3). The record is locked (error 363) for writing, why? Shouldn't it be possible to get a write permission even if another client is reading? When this happens, we sometimes also get error 351 (varChar field corrupted). I have diagnosed the server database with Valentina app a couple of times but found no errors. I am flushing the database after each write access since in real world environment there will not be too many of them. It seems that the 351 errors occur more often when a second write access follows a flush(). My database has a structure encryption. What's wrong? Erich From erichg at mcmm.com Fri Jan 16 02:19:04 2004 From: erichg at mcmm.com (Erich Geiersberger) Date: Thu Jan 15 19:19:17 2004 Subject: [V4MD] Errors 351 and 363 (I am sooo dumb) In-Reply-To: References: Message-ID: I am sooo dumb! kreadWrite = 2 is a record read LOCK it surely locks writing. But the rest of the question could be interesting since that shouldn't happen... Erich >Hi Ruslan, > >I have a couple of questions. > >Two or more clients are reading from the same table with server side >cursors and read permission (kreadWrite = 2) >One of them tries to write to a record which is selected by one of >the other clients cursors. >He creates a new cursor with readWrite permission (kreadWrite = 3). >The record is locked (error 363) for writing, why? >Shouldn't it be possible to get a write permission even if another >client is reading? > >When this happens, we sometimes also get error 351 (varChar field corrupted). >I have diagnosed the server database with Valentina app a couple of >times but found no errors. >I am flushing the database after each write access since in real >world environment there will not be too many of them. It seems that >the 351 errors occur more often when a second write access follows a >flush(). > >My database has a structure encryption. > >What's wrong? > >Erich From forgete at cafederic.com Fri Jan 16 00:43:17 2004 From: forgete at cafederic.com (Eric Forget) Date: Thu Jan 15 23:43:23 2004 Subject: [SQL] Related table question In-Reply-To: Message-ID: Hi Ruslan, Let's restart from scratch, since more I looking at it more problems I found and you won't follow me... What I'm trying to implement is a find dialog where the user specify the conditions. Look at the Rule editor of the Mac OS X Mail (in the preferences dialog) to see what I'm doing. The user can choose whether the conditions must all match or just one. For almost all the conditions (except 2) everything is working fine. As an example I dynamically create: SELECT DISTINCT Table1.CalcID, Table1.Label FROM Table1 WHERE (Table1.LowerName LIKE '\Ap') AND (Table1.Modified > '2004-01-13') ORDER BY Table1.LowerName Or SELECT DISTINCT Table1.CalcID, Table1.Label FROM Table1 WHERE (Table1.LowerName LIKE '\Ap') OR (Table1.Modified > '2004-01-13') ORDER BY Table1.LowerName Calc.ID is a method equal to RecID, as you suggested me earlier today. These 2 examples works fine. However for the 2 cases where I have a related table, e.g. Keywords, things are not working well: 1) I'm not able to simulate "has not" with Keyword.Name. "has" works fine. 2) I'm unable to add them to the Boolean operation for the WHERE clause. The meaningful fields of table Keyword looks like this: Table1 ObjectPtr Name String There may be 0-N Keyword record for each Table1. Do you have any ideas on how I should proceed? Eric ___________________________________________________________________ Eric Forget Cafederic ForgetE@cafederic.com Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684> From sunshine at public.kherson.ua Fri Jan 16 09:38:56 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jan 16 01:39:23 2004 Subject: [SQL] Related table question In-Reply-To: Message-ID: on 1/16/04 1:49 AM, Eric Forget at forgete@cafederic.com wrote: >>>> Btw, please show what you WANT to get from above 2 tables? >>> >>> A.RecID >>> 1 >>> 2 >> >> This is what you need? >> >> >> ----------------------------- >> Then I offer you simplest way: > > Seriously... ;-) > > This is the result I want with the dataset you provided. But I need to get > it with "B.b1 <> 1". This is what the user provided. Then also simply: SELECT DISTINCT ptr FROM B WHERE b1 <> 1 TIP is you can get this info from single B table. No need to build JOIN -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Fri Jan 16 09:39:40 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jan 16 01:39:54 2004 Subject: [SQL] Bug with DISTINCT? In-Reply-To: Message-ID: on 1/16/04 1:58 AM, Eric Forget at forgete@cafederic.com wrote: >> Please note, >> >> RecID field not works correctly if you use it in ORDER BY. > > So when I query "SELECT DISTINCT RecID ..." there is in implicit "ORDER BY > RecID"? Is it what you means? Yes. DISTINCT always must sort records at first. Then it throw out the same records. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Fri Jan 16 09:41:06 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jan 16 01:41:43 2004 Subject: [SQL] Related table question In-Reply-To: Message-ID: on 1/16/04 7:43 AM, Eric Forget at forgete@cafederic.com wrote: > Hi Ruslan, > > Let's restart from scratch, since more I looking at it more problems I found > and you won't follow me... > > What I'm trying to implement is a find dialog where the user specify the > conditions. Look at the Rule editor of the Mac OS X Mail (in the preferences > dialog) to see what I'm doing. The user can choose whether the conditions > must all match or just one. > > For almost all the conditions (except 2) everything is working fine. As an > example I dynamically create: > > SELECT DISTINCT Table1.CalcID, Table1.Label > FROM Table1 > WHERE (Table1.LowerName LIKE '\Ap') AND (Table1.Modified > '2004-01-13') > ORDER BY Table1.LowerName > > Or > > SELECT DISTINCT Table1.CalcID, Table1.Label > FROM Table1 > WHERE (Table1.LowerName LIKE '\Ap') OR (Table1.Modified > '2004-01-13') > ORDER BY Table1.LowerName > > Calc.ID is a method equal to RecID, as you suggested me earlier today. These > 2 examples works fine. > > However for the 2 cases where I have a related table, e.g. Keywords, things > are not working well: > > 1) I'm not able to simulate "has not" with Keyword.Name. "has" works fine. > > 2) I'm unable to add them to the Boolean operation for the WHERE clause. > > The meaningful fields of table Keyword looks like this: > > Table1 ObjectPtr > Name String > > There may be 0-N Keyword record for each Table1. > > Do you have any ideas on how I should proceed? Can you send me DATABASE with 2 tables and few records? And tell me what result you want to see using YOUR data? Then I will play in Vstudio with your db -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Fri Jan 16 09:46:16 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jan 16 01:46:53 2004 Subject: [V4MD] Errors 351 and 363 In-Reply-To: Message-ID: on 1/16/04 2:26 AM, Erich Geiersberger at erichg@mcmm.com wrote: Hi Erich, > I have a couple of questions. > > Two or more clients are reading from the same table with server side > cursors and read permission (kreadWrite = 2) > One of them tries to write to a record which is selected by one of > the other clients cursors. > He creates a new cursor with readWrite permission (kreadWrite = 3). > The record is locked (error 363) for writing, why? > Shouldn't it be possible to get a write permission even if another > client is reading? You have answer this self. > When this happens, we sometimes also get error 351 (varChar field corrupted). > I have diagnosed the server database with Valentina app a couple of > times but found no errors. You stop server, and diagnose YOUR database, AND masterdb ? And no problems? Hmm. Strange. > I am flushing the database after each write access since in real > world environment there will not be too many of them. It seems that > the 351 errors occur more often when a second write access follows a > flush(). > > My database has a structure encryption. > > What's wrong? Even don't know. 1) is it possible for you to make database without encryption, and play some time with it? 2) we talk about client/server, yes? 3) try to find the way to reproduce, please -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From martin.kloss at gmx.de Fri Jan 16 10:14:44 2004 From: martin.kloss at gmx.de (Martin Kloss) Date: Fri Jan 16 03:15:00 2004 Subject: [SQL] Bug with DISTINCT? In-Reply-To: References: Message-ID: <6.0.1.1.2.20040116101209.01d526f8@pop.gmx.de> At 08:39 16.01.2004, you wrote: > >> RecID field not works correctly if you use it in ORDER BY. > > > > So when I query "SELECT DISTINCT RecID ..." there is in implicit "ORDER BY > > RecID"? Is it what you means? > >Yes. > >DISTINCT always must sort records at first. > >Then it throw out the same records. Will this bug be fixed in the next release? Because sorting by RecID seems the natural thing to do, even though it will be sorted by RecID if no sort order is given. But it should definitely not return 0 records if you sort by RecID in this case. Martin. From sunshine at public.kherson.ua Fri Jan 16 11:43:05 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jan 16 03:43:07 2004 Subject: [SQL] Bug with DISTINCT? In-Reply-To: <6.0.1.1.2.20040116101209.01d526f8@pop.gmx.de> Message-ID: on 1/16/04 11:14 AM, Martin Kloss at martin.kloss@gmx.de wrote: > At 08:39 16.01.2004, you wrote: >>>> RecID field not works correctly if you use it in ORDER BY. >>> >>> So when I query "SELECT DISTINCT RecID ..." there is in implicit "ORDER BY >>> RecID"? Is it what you means? >> >> Yes. >> >> DISTINCT always must sort records at first. >> >> Then it throw out the same records. > > Will this bug be fixed in the next release? Yes. > Because sorting by RecID seems the natural thing to do, > even though it will be sorted by RecID if no sort order is given. > But it should definitely not return 0 records if you sort by > RecID in this case. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From rjb at rz.uni-potsdam.de Fri Jan 16 12:58:51 2004 From: rjb at rz.uni-potsdam.de (Robert Brenstein) Date: Fri Jan 16 06:10:53 2004 Subject: [SQL] Bug with DISTINCT? In-Reply-To: References: Message-ID: >on 1/16/04 1:58 AM, Eric Forget at forgete@cafederic.com wrote: > >>> Please note, >>> >>> RecID field not works correctly if you use it in ORDER BY. >> >> So when I query "SELECT DISTINCT RecID ..." there is in implicit "ORDER BY >> RecID"? Is it what you means? > >Yes. > >DISTINCT always must sort records at first. > >Then it throw out the same records. > So DISTINCT will also create index, if one is not there, right? This should be mentioned in docs, shouldn't it? Robert From erichg at mcmm.com Fri Jan 16 12:54:05 2004 From: erichg at mcmm.com (Erich Geiersberger) Date: Fri Jan 16 06:21:47 2004 Subject: [V4MD] Errors 351 and 363 In-Reply-To: References: Message-ID: > > When this happens, we sometimes also get error 351 (varChar field >corrupted). > > > I have diagnosed the server database with Valentina app a couple of > > times but found no errors. > >You stop server, and diagnose YOUR database, AND masterdb ? > >And no problems? Hmm. >Strange. Yes > > > I am flushing the database after each write access since in real > > world environment there will not be too many of them. It seems that > > the 351 errors occur more often when a second write access follows a > > flush(). > > > > My database has a structure encryption. > > > > What's wrong? > >Even don't know. > >1) is it possible for you to make database without encryption, and play some >time with it? > >2) we talk about client/server, yes? > >3) try to find the way to reproduce, please 1) on Monday 2) yes 3) we are searching... From xyzabc1010 at yahoo.com Fri Jan 16 10:37:49 2004 From: xyzabc1010 at yahoo.com (X Y) Date: Fri Jan 16 12:37:55 2004 Subject: consistent error code Message-ID: <20040116183749.24835.qmail@web21107.mail.yahoo.com> Hi All, I am trying to catch error codes and determine which action to take. For example, when the database is being used by another person, I want the program to retry opening the DB. Otherwise, if there is any other problems such as couldnt find the network. I want the system to notify the user of an error. My question is when the database is locked by another user does it always return the error code: 32. I saw there is a -43 and -49 error code which noted the database is in use. Thanks __________________________________ Do you Yahoo!? Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus From fb at memedia.de Fri Jan 16 21:12:12 2004 From: fb at memedia.de (Florian Bogeschdorfer) Date: Fri Jan 16 14:12:17 2004 Subject: SQL Pro Question? Message-ID: Hi I have a DB with persons and their birth date. The birth date is of type kDate Now what can I do to find all people who have birthday in MAY for example or in the current or next week or current or next month? I mean not in this year. If I search for all who have birthday in May, I need as a result e.g.: 12.05.1978 16.05.1999 22.05.1982 Ideas ? Thank you , Florian From sunshine at public.kherson.ua Fri Jan 16 22:41:32 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jan 16 14:41:25 2004 Subject: SQL Pro Question? In-Reply-To: Message-ID: on 1/16/04 10:12 PM, Florian Bogeschdorfer at fb@memedia.de wrote: > Hi > > I have a DB with persons and their birth date. The birth date is of type > kDate > > Now what can I do to find all people who have birthday in MAY for example or > in the current or next week or current or next month? I mean not in this > year. If I search for all who have birthday in May, I need as a result e.g.: > > 12.05.1978 > 16.05.1999 > 22.05.1982 > > Ideas ? Hi Florian, 1) if you do this query often, and you want to have index on such kind of query, you can make BaseObject method using function Month(f) 2) you can use LIKE search I think WHERE fld LIKE '../05/....' -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From cm_sheffield at yahoo.com Fri Jan 16 12:47:38 2004 From: cm_sheffield at yahoo.com (Chris Sheffield) Date: Fri Jan 16 14:47:43 2004 Subject: Cursor_AddRecords not working Message-ID: <20040116204738.12126.qmail@web20405.mail.yahoo.com> Maybe I'm just doing something wrong, but I can't get this function to work right. Hopefully someone can help. I'm using the VXCMD with Revolution. I'm getting an empty cursor by using the following SQL: "SELECT * FROM Sections WHERE RecID=0" The cursor is getting created just fine. I've got a variable with a list of records. Fields are tab delimited and records are return delimited (using the cr constant in Rev). Is there anything wrong with this? Instead of saving multiple records when I call Cursor_AddRecords(), it's only saving one record with my entire string of records in the first field. Am I doing something wrong? Thanks, ===== Chris Sheffield Read Naturally www.readnaturally.com __________________________________ Do you Yahoo!? Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus From sunshine at public.kherson.ua Fri Jan 16 23:09:17 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jan 16 15:09:09 2004 Subject: Cursor_AddRecords not working In-Reply-To: <20040116204738.12126.qmail@web20405.mail.yahoo.com> Message-ID: on 1/16/04 10:47 PM, Chris Sheffield at cm_sheffield@yahoo.com wrote: > Maybe I'm just doing something wrong, but I can't get > this function to work right. Hopefully someone can > help. I'm using the VXCMD with Revolution. > > I'm getting an empty cursor by using the following > SQL: > > "SELECT * FROM Sections WHERE RecID=0" > > The cursor is getting created just fine. I've got a > variable with a list of records. Fields are tab > delimited and records are return delimited (using the > cr constant in Rev). Is there anything wrong with > this? Instead of saving multiple records when I call > Cursor_AddRecords(), it's only saving one record with > my entire string of records in the first field. Am I > doing something wrong? Hi Chris, Have you specify kReadWrite for cursor? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Fri Jan 16 23:14:46 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jan 16 15:16:43 2004 Subject: consistent error code In-Reply-To: <20040116183749.24835.qmail@web21107.mail.yahoo.com> Message-ID: on 1/16/04 8:37 PM, X Y at xyzabc1010@yahoo.com wrote: > Hi All, > I am trying to catch error codes and determine which > action to take. For example, when the database is > being used by another person, I want the program to > retry opening the DB. Otherwise, if there is any other > problems such as couldnt find the network. I want the > system to notify the user of an error. > > My question is when the database is locked by another > user does it always return the error code: 32. I saw > there is a -43 and -49 error code which noted the > database is in use. That is the problem. 1) first of all MAC and Windows return different codes. This give us problems, yes? I want in 2.0 wrap all often system codes by Valentina codes. So we must get from Valentina on all platforms the same code. 2) As I have see both MAC and WIN can return different error codes If we try to open read only db. read only volume (CD) -- one error code read only file -- other error code I think you need try different cases and see what they return you. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From xyzabc1010 at yahoo.com Fri Jan 16 13:59:23 2004 From: xyzabc1010 at yahoo.com (X Y) Date: Fri Jan 16 15:59:30 2004 Subject: [V4MD] opening a DB in MAC OS 10.3 Panther Message-ID: <20040116215923.75489.qmail@web21109.mail.yahoo.com> Hi All, So I tried to open the db while another process (viSql) was using the same db. However, instead of returning an error code, the program returned 0 and noted that the db was open. Is this a known error? Thanks __________________________________ Do you Yahoo!? Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus From sunshine at public.kherson.ua Sat Jan 17 01:34:36 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jan 16 17:35:20 2004 Subject: [V4MD] opening a DB in MAC OS 10.3 Panther In-Reply-To: <20040116215923.75489.qmail@web21109.mail.yahoo.com> Message-ID: on 1/16/04 11:59 PM, X Y at xyzabc1010@yahoo.com wrote: > Hi All, > So I tried to open the db while another process > (viSql) was using the same db. However, instead of > returning an error code, the program returned 0 and > noted that the db was open. > > Is this a known error? Yes. This is "gift" of OS X. Read this http://developer.apple.com/technotes/tn/tn2037.html In fact right now I want to try in V4MD way as they suggest, Using additional .lock file. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From kray at sonsothunder.com Fri Jan 16 15:57:13 2004 From: kray at sonsothunder.com (Ken Ray) Date: Fri Jan 16 17:58:13 2004 Subject: [ANN] Vserver a31 and Clients a31 In-Reply-To: Message-ID: > 2) client now have new kind of cursor -- Server Side Bulk cursor. > it has number 3. Ruslan, what's a "Server Side Bulk" cursor, and how does it differ from what we were able to do before a31? Ken Ray Sons of Thunder Software Email: kray@sonsothunder.com Web Site: http://www.sonsothunder.com/ From kray at sonsothunder.com Fri Jan 16 15:57:58 2004 From: kray at sonsothunder.com (Ken Ray) Date: Fri Jan 16 18:01:08 2004 Subject: Ignore last email re: VServer a31 Message-ID: I accidentally responded to an old post. Please ignore. Ken Ray Sons of Thunder Software Email: kray@sonsothunder.com Web Site: http://www.sonsothunder.com/ From sunshine at public.kherson.ua Sat Jan 17 15:57:20 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jan 17 07:58:06 2004 Subject: [SQL] Related table question In-Reply-To: Message-ID: on 1/17/04 11:22 AM, Ruslan Zasukhin at sunshine@public.kherson.ua wrote: > on 1/16/04 10:35 AM, Eric Forget at forgete@cafederic.com wrote: >> 2. (A.Name LIKE "\AH") OR (Keyword.Name = "Me") >> >> Result: CalcID Label >> 1 2 >> 2 3 > > This not works in 1.x > OR on fields from different tables Hi Eric, I was little wrong! You can get such result in Valentina 1.x. This is a query: select A.calcId, A.label from a where (a.Name LIKE '\AH' ) or a.RecID in (select ptr from keyword where name = 'Me' ) -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From erichg at mcmm.com Sat Jan 17 16:08:48 2004 From: erichg at mcmm.com (Erich Geiersberger) Date: Sat Jan 17 09:09:27 2004 Subject: [VServer] index file size Message-ID: Hi Ruslan, after 1 day of intensive testing with 3-5 clients, I noticed that my index file has grown to 4.2 GB (!). My DB file has 12 tables and is about 9 MB. This is: VServer_NT, 2.0a55, Kernel 1.10 running on Windows XP. For testing purposes the server has been run as an executable from the console window. It has been stopped and restarted a couple of times and we have also tested for timeouts and server side disconnects. Another difference between the tests we did some days ago is that at the moment all read accesses use kReadWrite = 1 instead of kReadWrite = 2. We have used and are using all server side cursors. Is this a possible bug or can it be related to the server running as an exec or the non-locked cursors? Is there any known error which can make an index file grow through the roof? Erich From sunshine at public.kherson.ua Sat Jan 17 18:42:56 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jan 17 10:42:48 2004 Subject: [VServer] index file size In-Reply-To: Message-ID: on 1/17/04 5:08 PM, Erich Geiersberger at erichg@mcmm.com wrote: Hi Erich, > after 1 day of intensive testing with 3-5 clients, I noticed that my > index file has grown to 4.2 GB (!). > My DB file has 12 tables and is about 9 MB. Interesting. Well, for now you can simply trash .ind file and Valentina will rebuild indexes. > This is: VServer_NT, 2.0a55, Kernel 1.10 running on Windows XP. > For testing purposes the server has been run as an executable from > the console window. > It has been stopped and restarted a couple of times and we have also > tested for timeouts and server side disconnects. > Another difference between the tests we did some days ago is that at > the moment all read accesses use kReadWrite = 1 instead of kReadWrite > = 2. We have used and are using all server side cursors. Bingo! May be some join or lock files are not cleared... > Is this a possible bug or can it be related to the server running as > an exec or the non-locked cursors? I think this is a bug. > Is there any known error which can make an index file grow through the roof? No. I think we can live yet few weeks with this bug. Until second version. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From dave at Parizek.com Sat Jan 17 15:07:33 2004 From: dave at Parizek.com (Dave Parizek) Date: Sat Jan 17 16:07:46 2004 Subject: sql weirdness In-Reply-To: References: Message-ID: Ok, so this works: SELECT ProductName,PriceThere,UsedPrice FROM Item, Venue, Product where (Item.ItemProductPtr = Product.RecID) and (VenueItemPtr = Item.RecID) and (PriceThere = UsedPrice) but if I change the last '=' to a '>' or '<' it does not work, I get an error 616, wrong expression: SELECT ProductName,PriceThere,UsedPrice FROM Item, Venue, Product where (Item.ItemProductPtr = Product.RecID) and (VenueItemPtr = Item.RecID) and (PriceThere > UsedPrice) What am I doing wrong? --Dave -- _______________________________________________ Dave Parizek Bookseller Dave@Parizek.com From dave at Parizek.com Sat Jan 17 15:57:03 2004 From: dave at Parizek.com (Dave Parizek) Date: Sat Jan 17 16:57:12 2004 Subject: 2.0 when? In-Reply-To: References: Message-ID: Does anyone know if there has been any indication about what time frame we can expect for 2.0's arrival? I know it has appeared to me that Ruslan has avoided being tied down on this one, which is understandable, but it would be nice to know are we looking at days, weeks, months, or years? Any hints anyone has gotten? Thanks, Dave From jda at his.com Sat Jan 17 18:10:28 2004 From: jda at his.com (jda) Date: Sat Jan 17 17:10:37 2004 Subject: 2.0 when? In-Reply-To: References: Message-ID: >Does anyone know if there has been any indication about what time >frame we can expect for 2.0's arrival? > >I know it has appeared to me that Ruslan has avoided being tied down >on this one, which is understandable, but it would be nice to know >are we looking at days, weeks, months, or years? > >Any hints anyone has gotten? > >Thanks, >Dave Ruslan has said that they're porting 2.0 to C++/SDK and V4MD now, and I think V4RB is next. So I suppose it's a matter of weeks for the first betas. But Ruslan is an optimistic fellow... :-> Jon From forgete at cafederic.com Sun Jan 18 00:24:28 2004 From: forgete at cafederic.com (Eric Forget) Date: Sat Jan 17 23:25:41 2004 Subject: [SQL] Related table question In-Reply-To: Message-ID: Hi Ruslan, First, thank you very much for the time you took to resolve those issues. And that during a weekend! To summarize, I'm planning to use these rules: 1) From the master SELECT I never do a FROM Keyword. 2) I always write the keyword clauses either: a) For equality: a.RecID in (select ptr from keyword where name = 'Me') b) For inequality: a.RecID not in (select ptr from keyword where name <> 'Me') However, I see b) working without understanding it. For me it looks like a double negation. Maybe there is something about SQL I don't understand. I've tried with all the 12 samples I gave you. They all works except 9) and 10) which deals with '' strings. >> 9. (Keyword.Name = "") >> >> Result: CalcID Label >> 3 7 >> 4 6 >> >> 10. (Keyword.Name <> "") >> >> Result: CalcID Label >> 1 2 >> 2 3 Finally, I've cases where that do not works: 13) a.RecID in (select ptr from keyword where name = 'Me') AND a.RecID in (select ptr from keyword where name = 'YOU') Result: CalcID Label Instead of: CalcID Label 1 2 14) a.RecID in (select ptr from keyword where name = 'Me') OR a.RecID in (select ptr from keyword where name = 'YOU') Result: CalcID Label 1 2 Instead of: CalcID Label 1 2 2 3 15) a.RecID in (select ptr from keyword where name = 'Me') OR a.RecID not in (select ptr from keyword where name <> 'YOU') Result: CalcID Label 1 2 3 7 4 6 Instead of: CalcID Label 1 2 2 3 3 7 4 6 Eric ___________________________________________________________________ Eric Forget Cafederic ForgetE@cafederic.com Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684> From forgete at cafederic.com Sun Jan 18 02:23:51 2004 From: forgete at cafederic.com (Eric Forget) Date: Sun Jan 18 01:24:00 2004 Subject: [SQL] Related table question In-Reply-To: Message-ID: > b) For inequality: > > a.RecID not in (select ptr from keyword where name <> 'Me') > > > However, I see b) working without understanding it. For me it looks like a > double negation. Maybe there is something about SQL I don't understand. After doing more testing, I realized that both a.RecID not in (select ptr from keyword where name <> 'Me') and a.RecID not in (select ptr from keyword where name = 'Me') always give the same result! Eric ___________________________________________________________________ Eric Forget Cafederic ForgetE@cafederic.com Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684> From sunshine at public.kherson.ua Sun Jan 18 10:22:48 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sun Jan 18 02:22:48 2004 Subject: Query Speed with v4RB In-Reply-To: Message-ID: on 1/18/04 5:39 AM, Brad Bennett at bbennett@quicomm.com wrote: Hi Brad, > Hi Ruslan: > > Thank you very much for your reply. I took your recommendations into > account, and we are very pleased with the results. Valentina now > demonstrates 70 - 100 times improvement in lookup speeds as compared to > using the internal RealBasic Database. If you are interested, please see: > > http://quicomm.com/valentina_vs_realbasic_db.htm > > The key was to break up the database in several manageable portions, > increase the Valentina cache, and index the ipfrom and ipto fields. To > decrease the DB size, I also changed the strings to VarChar fields. Thanks > again for your suggestions and for a truly remarkable database product. Glad to hear you have excellent results now with Valentina. I will CC this to Valentina list and NUG to share your success with other developers. NOTES: 1) I am sure that even if your db will grow to 20 millions records, time of Valentina answer will grow may be to 0.1 - 0.2 seconds. 2) In Valentina 2.0 we improve many parts of engine to works in 50-500 time faster. Yes really. It is hard now to say general speed up for 2.0. I think it will very depend on particular task. 3) and 2.0 will contain one more feature which will allow IF NEEDED speed up answers even more. > best regards, > --- Brad Bennett > >> on 1/16/04 10:44 PM, bbennett@quicomm.com at bbennett@quicomm.com wrote: >> >>> Our database table (2.5 million records): >>> >>> ipfrom double >>> ipto double >>> latitude double >>> longitude double >>> country string(64) >>> region string(128) >>> city string(128) >>> isp string(256) >>> >>> What we need to do is query this database on an IP address, hence the SQL >>> command is something like: >>> >>> tSQL = "SELECT latitude,longitude,country,region,city,isp FROM iplat >>> WHERE >>> ipfrom <= myIP AND ipto >= myIP" >>> >>> In order to use the internal RealDatabase, we actually broke the DB into 20 >>> databases, then conditionally opened the needed DB depending on the IP >>> address >>> range. For Valentina we just tried a single database (hence perhaps we are >>> comparing Apples to Oranges). >>> >>> My question is: >>> >>> - our queries using the single 2.5 million record Valentina DB on an 800 MHz >>> G4 are taking about 2.5 seconds. Does this sound about right? >> >> I think not. We have Valentina developer that have db in 28 millions of >> records, and he have told that Valentina answer him in 0.2 seconds. >> >> >>> - this is about the same time it takes us to query the internal RealDatabase >>> system (although using 20 separate DB files, each having about 125,000 >>> records). Would you believe if we broke up the Valentina DB into 20 >>> similarly >>> sized DBs, we might experience a significant speed gain? >> >> Reducing db size in 20 times, reduce the number of steps on the search in >> log(n) = 4-5 times. >> >> I am not sure that this is very good idea -- split db. >> Only if data have some special characteristics which you can use. >> In your task it seems you have such info. >> >> Just you can create not 20 dbs, but use one db with 20 tables. >> >> >>> - due to the fixed string field sizes, our Valentina DB has ballooned to >>> over >>> 1.5 GB. Ouch. Even compressed, this is still a 750 MB file. Too much to >>> easily distribute online. IF we go to the "text" (blob) type of >>> string assigment to these fields, will we see any significant performance >>> penalty? >> >> As I have said, you need VarChar field! >> >> >>> - any other tips we should consider in using Valentina? We really do >>> like the >>> ability to use it on both Mac and Windows...and the testimonials seem to >>> indicate that we really should see some significant performance gains. Any >>> additional ideas? >> >> Yes. >> >> First of all check the size of cache that you have specify. >> It should be at least 10-15MB. >> >> Let's count. You do search on double. 8 bytes >> >> 2.5MB * 8 = 20MB file of field. >> >> Index will take ... Depend on if you have repeating values, and how much. >> Index can be >> if unique field: (8 + 4) = 12 * 2.5M = 30MB index. >> actually even bigger 50% usually. So up to 45MB. >> >> if you have repeating then it can be e,g, 20MB. >> >> And you do search on 2 such indexes. >> >> >> ----------- >> As I understand, you have STABLE database, yes? >> Then after you prepare table, close it, trash .ind file >> And open it again, you will get index more compact. >> >> >> --------- >> How many records is found in average on your query? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sun Jan 18 10:26:22 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sun Jan 18 02:26:30 2004 Subject: [SQL] Related table question In-Reply-To: Message-ID: on 1/18/04 7:24 AM, Eric Forget at forgete@cafederic.com wrote: Hi Eric, > First, thank you very much for the time you took to resolve those issues. > And that during a weekend! What is weekend? :-) > To summarize, I'm planning to use these rules: > > 1) From the master SELECT I never do a FROM Keyword. > > 2) I always write the keyword clauses either: > > a) For equality: > a.RecID in (select ptr from keyword where name = 'Me') > > b) For inequality: > > a.RecID not in (select ptr from keyword where name <> 'Me') > > > However, I see b) working without understanding it. For me it looks like a > double negation. Maybe there is something about SQL I don't understand. This is query of kind: WHERE fld IN (v1, v2, v3) Here you do not see problems? In your query we use subselect to get LIST of values. WHERE fld IN (select ptr FROM T ... ) -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sun Jan 18 10:26:52 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sun Jan 18 02:26:53 2004 Subject: [SQL] Related table question In-Reply-To: Message-ID: on 1/18/04 9:23 AM, Eric Forget at forgete@cafederic.com wrote: >> b) For inequality: >> >> a.RecID not in (select ptr from keyword where name <> 'Me') >> >> >> However, I see b) working without understanding it. For me it looks like a >> double negation. Maybe there is something about SQL I don't understand. > > After doing more testing, I realized that both > > a.RecID not in (select ptr from keyword where name <> 'Me') > > and > > a.RecID not in (select ptr from keyword where name = 'Me') > > always give the same result! Okay, then try syntax: not( a.RecID in (select ptr from keyword where name = 'Me')) -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From forgete at cafederic.com Sun Jan 18 03:31:00 2004 From: forgete at cafederic.com (Eric Forget) Date: Sun Jan 18 02:31:59 2004 Subject: [SQL] Related table question In-Reply-To: Message-ID: >> a.RecID not in (select ptr from keyword where name <> 'Me') >> >> >> However, I see b) working without understanding it. For me it looks like a >> double negation. Maybe there is something about SQL I don't understand. > > This is query of kind: > > WHERE fld IN (v1, v2, v3) > > Here you do not see problems? > > In your query we use subselect to get LIST of values. > > WHERE fld IN (select ptr FROM T ... ) What I don't understand is why the double negation: a.RecID not in (select ptr from keyword where name <> 'Me') ^^^ ^^ Eric ___________________________________________________________________ Eric Forget Cafederic ForgetE@cafederic.com Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684> From sunshine at public.kherson.ua Sun Jan 18 10:34:06 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sun Jan 18 02:34:22 2004 Subject: sql weirdness In-Reply-To: Message-ID: on 1/18/04 12:07 AM, Dave Parizek at dave@Parizek.com wrote: > Ok, so this works: > > SELECT ProductName,PriceThere,UsedPrice FROM Item, Venue, Product > where (Item.ItemProductPtr = Product.RecID) and (VenueItemPtr = > Item.RecID) and (PriceThere = UsedPrice) > > but if I change the last '=' to a '>' or '<' it does not work, I get > an error 616, wrong expression: > > SELECT ProductName,PriceThere,UsedPrice FROM Item, Venue, Product > where (Item.ItemProductPtr = Product.RecID) and (VenueItemPtr = > Item.RecID) and (PriceThere > UsedPrice) > > What am I doing wrong? Hi Dave, Valentina 1.x support JOIN by WHERE A.key = B.ptr -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From forgete at cafederic.com Sun Jan 18 03:34:20 2004 From: forgete at cafederic.com (Eric Forget) Date: Sun Jan 18 02:34:28 2004 Subject: [SQL] Related table question In-Reply-To: Message-ID: >> After doing more testing, I realized that both >> >> a.RecID not in (select ptr from keyword where name <> 'Me') >> >> and >> >> a.RecID not in (select ptr from keyword where name = 'Me') >> >> always give the same result! > > Okay, then try syntax: > > > not( a.RecID in (select ptr from keyword where name = 'Me')) This seems to give more reliable results... Eric ___________________________________________________________________ Eric Forget Cafederic ForgetE@cafederic.com Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684> From sunshine at public.kherson.ua Sun Jan 18 10:42:28 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sun Jan 18 02:42:49 2004 Subject: [SQL] Related table question In-Reply-To: Message-ID: on 1/18/04 10:31 AM, Eric Forget at forgete@cafederic.com wrote: >>> a.RecID not in (select ptr from keyword where name <> 'Me') >>> >>> >>> However, I see b) working without understanding it. For me it looks like a >>> double negation. Maybe there is something about SQL I don't understand. >> >> This is query of kind: >> >> WHERE fld IN (v1, v2, v3) >> >> Here you do not see problems? >> >> In your query we use subselect to get LIST of values. >> >> WHERE fld IN (select ptr FROM T ... ) > > What I don't understand is why the double negation: > > a.RecID not in (select ptr from keyword where name <> 'Me') Ops, really. It seems we do not need NOT. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sun Jan 18 10:43:10 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sun Jan 18 02:43:09 2004 Subject: [SQL] Related table question In-Reply-To: Message-ID: on 1/18/04 10:34 AM, Eric Forget at forgete@cafederic.com wrote: >>> After doing more testing, I realized that both >>> >>> a.RecID not in (select ptr from keyword where name <> 'Me') >>> >>> and >>> >>> a.RecID not in (select ptr from keyword where name = 'Me') >>> >>> always give the same result! >> >> Okay, then try syntax: >> >> >> not( a.RecID in (select ptr from keyword where name = 'Me')) > > This seems to give more reliable results... Okay, NOT( EXPR ) works always. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sun Jan 18 10:49:45 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sun Jan 18 02:49:50 2004 Subject: 2.0 when? In-Reply-To: Message-ID: on 1/18/04 1:10 AM, jda at jda@his.com wrote: >> Does anyone know if there has been any indication about what time >> frame we can expect for 2.0's arrival? >> >> I know it has appeared to me that Ruslan has avoided being tied down >> on this one, which is understandable, but it would be nice to know >> are we looking at days, weeks, months, or years? >> >> Any hints anyone has gotten? >> >> Thanks, >> Dave > > Ruslan has said that they're porting 2.0 to C++/SDK and V4MD now, > and I think V4RB is next. So I suppose it's a matter of weeks for the > first betas. But Ruslan is an optimistic fellow... :-> Yes I a, optimist. As any software developer. Pessimists must be product managers :-) >From major missing parts for 2.0 we have yet -- indexes. I have made for now only Byte index. yet TODO, Unique, not Unique, String -- Importer of ASCII I think, Sergey will implement this next week. -- I have made already AGGR mechanism mainly, now it is on hold until indexes will be ready, because it needs sorting -- Alex works right now on CONSTRAINTS management CHECK, PRIMARY KEY, FOREIGN KEY, UNIQUE, INDEX. -- Igor now works on porting of V4MD, C++ client and Server. -- Ivan works on algorithms for UNION, EXCEPT, INTERNSECT. I hope next week will be ready. -- TODO: joins, also on hold for indexes. -- TODO: system tables (3-7 days). I will not list here new already implemented features. Too many. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sun Jan 18 19:46:22 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sun Jan 18 11:46:13 2004 Subject: [WARN] MacOS X, Vserver, masterdb, privileges Message-ID: Hi All, Just only I have enter into small trap, And I want to warn other Vserver users that work on OS X. Steps. 1) I have become root in the terminal doing sudo su - 2) server is stoped. 3) there is no masterdb. (trashed) 4) I run Vserver in the terminal while I am root. 5) it create masterdb. 6) I stop server, and I want to open masterdb in the VAPP. and ops it fails. At last of end I have found, that masterdb was created with owner "system" (because server was started under root) Therefore me, as normal user have only read access to it. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From forgete at cafederic.com Sun Jan 18 13:11:40 2004 From: forgete at cafederic.com (Eric Forget) Date: Sun Jan 18 12:14:11 2004 Subject: [SQL] Related table question In-Reply-To: Message-ID: Hi Ruslan, So now there is still 2 category of unresolved issues. 1) When you build an Boolean expression that contains more than one select ptr from keyword:. See 13), 14) and 15) of my previous email... 2) When you want to compare keyword with '': ... (select ptr from keyword where name = '') Eric ___________________________________________________________________ Eric Forget Cafederic ForgetE@cafederic.com Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684> From sunshine at public.kherson.ua Sun Jan 18 20:16:48 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sun Jan 18 12:16:40 2004 Subject: Question, UNION Message-ID: Hi guys, We here have small discussion (between Valentina developers) And I want ask, may be somebody have prompt us. Let we have SELECT ... UNION SELECT ... My opinion is that SQL do not guarantee ORDER OF RECORDS in the result, Until you specify ORDER BY. Ivan, says that Sybase, Oracle and MS SQL, all return result in order at first records of FIRST SELECT, then records of SECOND. We have check, and it seems to be true. They return result in this way. The funny is, that we can produce result by MY way, more faster, than if we will try save order of records. I do not see any reason why UNION must work in the way as it works in Sybase, and others.... We have not found any words about this in the standard... may be we are blind? So does anybody have any additional info about this? --------- BTW, Ivan, I think that in the case we have SELECT ... UNION SELECT ... ORDER BY We can use the first way and algorithm, because for such query It is exactly not needed to make special order for UNION, It will be changed by ORDER BY later. So in the worse case, we can have 2 algorithms. The first will eat less RAM. What you think? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sun Jan 18 20:18:00 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sun Jan 18 12:17:49 2004 Subject: [SQL] Related table question In-Reply-To: Message-ID: on 1/18/04 8:11 PM, Eric Forget at forgete@cafederic.com wrote: > Hi Ruslan, > > So now there is still 2 category of unresolved issues. > > 1) When you build an Boolean expression that contains more than one select > ptr from keyword:. See 13), 14) and 15) of my previous email... > > 2) When you want to compare keyword with '': > > ... (select ptr from keyword where name = '') Hi Eric, Please send me again db and this 2 query description. I have trash all already. :-) -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From leemiller at madisongrp.com Sun Jan 18 15:07:15 2004 From: leemiller at madisongrp.com (Lee Miller) Date: Sun Jan 18 14:07:15 2004 Subject: Property error Message-ID: <5.2.0.9.0.20040118150502.00ae5698@mail.madisongrp.com> Here is the code Dim Db As VDataBase Dim CountOfTables As Long Dim sTableName As String Dim i As Variant Set Db = CreateTestDb If Not Db Is Nothing Then 'Load list of tables into MSFlexGrid2 i = 1 CountOfTables = Db.BaseObjectCount sTableName = Db.BaseObject(i) At the line CountOfTables = Db.BaseObjectCount, it returns the correct value, 2. The next line gives the following error "Object doesn't support this property or method." Isn't this how you locate the name of each table in a database? Lee From sunshine at public.kherson.ua Sun Jan 18 22:14:09 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sun Jan 18 14:15:53 2004 Subject: [VCOM] Property error In-Reply-To: <5.2.0.9.0.20040118150502.00ae5698@mail.madisongrp.com> Message-ID: on 1/18/04 10:07 PM, Lee Miller at leemiller@madisongrp.com wrote: Hi Lee, > Here is the code > > Dim Db As VDataBase > Dim CountOfTables As Long > Dim sTableName As String > Dim i As Variant > Set Db = CreateTestDb > If Not Db Is Nothing Then > 'Load list of tables into MSFlexGrid2 > i = 1 > CountOfTables = Db.BaseObjectCount > sTableName = Db.BaseObject(i) > > At the line CountOfTables = Db.BaseObjectCount, it returns the correct > value, 2. > > The next line gives the following error > > "Object doesn't support this property or method." > > Isn't this how you locate the name of each table in a database? May be you need Db.BaseObjectCount() ^^^^^ Visual BASIC sometimes need (), sometimes no. PS: Please use in the subject [VCOM] Property error -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From jda at his.com Sun Jan 18 15:38:06 2004 From: jda at his.com (jda) Date: Sun Jan 18 14:38:14 2004 Subject: Can't create method In-Reply-To: References: Message-ID: Hi, I must be doing something stupid -- I can't add a new method to my existing database. The code is authorEditorSortMethod = new VVarChar("authorEditorSortMethod", 128, "English", kV_Indexed) authorEditorSortMethod.SetMethod("Upper(if (length(authors)=0, if (length(editors)=0,title,editors),authors))") I create a new database and try to populate it -- updating records (cursor method) fails, and ultimately I get a crash. And of course this is with a fresh database. Any ideas, Ruslan? Jon From sunshine at public.kherson.ua Sun Jan 18 22:44:09 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sun Jan 18 14:45:51 2004 Subject: Can't create method In-Reply-To: Message-ID: on 1/18/04 10:38 PM, jda at jda@his.com wrote: > Hi, > > I must be doing something stupid -- I can't add a new method to my > existing database. The code is > > authorEditorSortMethod = new VVarChar("authorEditorSortMethod", > 128, "English", kV_Indexed) > authorEditorSortMethod.SetMethod("Upper(if (length(authors)=0, if > (length(editors)=0,title,editors),authors))") > > I create a new database and try to populate it -- updating records > (cursor method) fails, and ultimately I get a crash. And of course > this is with a fresh database. Hi Jon, First of all check your db in the VAPP to see if method was created, With the same formula as you want. Next, add in VAPP some data in new record, And check if method calculate correct value. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From jda at his.com Sun Jan 18 16:01:07 2004 From: jda at his.com (jda) Date: Sun Jan 18 15:01:14 2004 Subject: Can't create method In-Reply-To: References: Message-ID: > > >First of all check your db in the VAPP to see if method was created, >With the same formula as you want. Yes, it's there and correct. > >Next, add in VAPP some data in new record, >And check if method calculate correct value. > Yes, it creates a new record and has the correct value. Jon From dave at Parizek.com Sun Jan 18 14:06:17 2004 From: dave at Parizek.com (Dave Parizek) Date: Sun Jan 18 15:06:28 2004 Subject: sql weirdness In-Reply-To: References: Message-ID: >on 1/18/04 12:07 AM, Dave Parizek at dave@Parizek.com wrote: > >> Ok, so this works: >> >> SELECT ProductName,PriceThere,UsedPrice FROM Item, Venue, Product >> where (Item.ItemProductPtr = Product.RecID) and (VenueItemPtr = >> Item.RecID) and (PriceThere = UsedPrice) >> >> but if I change the last '=' to a '>' or '<' it does not work, I get >> an error 616, wrong expression: >> > > SELECT ProductName,PriceThere,UsedPrice FROM Item, Venue, Product >> where (Item.ItemProductPtr = Product.RecID) and (VenueItemPtr = > > Item.RecID) and (PriceThere > UsedPrice) >> >> What am I doing wrong? > >Hi Dave, > >Valentina 1.x support JOIN by > > WHERE A.key = B.ptr > I'm confused. I'm not trying to do a join exactly. I have 3 tables. Product is joined to Item one to many. Item is joined to Venue one to many. Product and Venue are not joined except thru Item. Now I want the Venue records where Venue.PriceThere is greater than Product.UsedPrice. In my where clause above, the first 2 items join the tables, and theoretically are unnecessary since I am using object pointers and Valentina can figure out the relations by itself. The 3rd item in the where clause is where I am attempting to limit the records, not do a join. If I have 3 tables can I not do that? eg.: If A.key = B.ptr and B.key=C.ptr, and I want to select out the records where C.price < A.price, how do I write that with Valentina? Or do I have to directly relate A to C? If not Valentina 1.x, will 2.0 be able to do this? --Dave -- _______________________________________________ Dave Parizek Bookseller Dave@Parizek.com From leemiller at madisongrp.com Sun Jan 18 16:26:47 2004 From: leemiller at madisongrp.com (Lee Miller) Date: Sun Jan 18 15:26:48 2004 Subject: [VCOM] Property error Message-ID: <5.2.0.9.0.20040118162229.00add3a8@mail.madisongrp.com> Hi Ruslan The error is not at Db.BaseObjectCount. That works correctly and returns the correct number of tables. It is the next line which reports the error. I have tried some different arguments but page 10 of the manual clearly states: BaseObject = db.BaseObject(i) Is this the correct method to use to return the name of the table(s) in a database? Lee > Here is the code > > Dim Db As VDataBase > Dim CountOfTables As Long > Dim sTableName As String > Dim i As Variant > Set Db = CreateTestDb > If Not Db Is Nothing Then > 'Load list of tables into MSFlexGrid2 > i = 1 > CountOfTables = Db.BaseObjectCount > sTableName = Db.BaseObject(i) > > At the line CountOfTables = Db.BaseObjectCount, it returns the correct > value, 2. > > The next line gives the following error > > "Object doesn't support this property or method." > > Isn't this how you locate the name of each table in a database? May be you need Db.BaseObjectCount() ^^^^^ Visual BASIC sometimes need (), sometimes no. From sunshine at public.kherson.ua Sun Jan 18 23:31:46 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sun Jan 18 15:31:38 2004 Subject: sql weirdness In-Reply-To: Message-ID: on 1/18/04 11:06 PM, Dave Parizek at dave@Parizek.com wrote: >>> Ok, so this works: >>> >>> SELECT ProductName,PriceThere,UsedPrice FROM Item, Venue, Product >>> where (Item.ItemProductPtr = Product.RecID) and (VenueItemPtr = >>> Item.RecID) and (PriceThere = UsedPrice) >>> >>> but if I change the last '=' to a '>' or '<' it does not work, I get >>> an error 616, wrong expression: >>> >>> SELECT ProductName,PriceThere,UsedPrice FROM Item, Venue, Product >>> where (Item.ItemProductPtr = Product.RecID) and (VenueItemPtr = >>> Item.RecID) and (PriceThere > UsedPrice) >>> >>> What am I doing wrong? >> >> Hi Dave, >> >> Valentina 1.x support JOIN by >> >> WHERE A.key = B.ptr >> > > I'm confused. I'm not trying to do a join exactly. I have 3 tables. > Product is joined to Item one to many. Item is joined to Venue one > to many. Product and Venue are not joined except thru Item. Okay, where (Item.ItemProductPtr = Product.RecID) and (VenueItemPtr = Item.RecID) and (PriceThere > UsedPrice) ^^^^^^^^^^^^^^^^^^^^^^^^ you can do this only in BaseObject method > Now I want the Venue records where Venue.PriceThere is greater than > Product.UsedPrice. Argh, so they even from different tables. > In my where clause above, the first 2 items join > the tables, and theoretically are unnecessary since I am using object > pointers and Valentina can figure out the relations by itself. The > 3rd item in the where clause is where I am attempting to limit the > records, not do a join. > > If I have 3 tables can I not do that? eg.: If A.key = B.ptr and > B.key=C.ptr, and I want to select out the records where C.price < > A.price, how do I write that with Valentina? Not works > Or do I have to directly relate A to C? Will not help. > If not Valentina 1.x, will 2.0 be able to do this? I think yes. It is hard query for execution. Condition PriceThere > UsedPrice must be applied to the JOIN table itself. JOIN table is TMP table built on the fly. It do not have indexes. So choices are build index or iterate. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sun Jan 18 23:35:33 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sun Jan 18 15:35:57 2004 Subject: [VCOM] Property error In-Reply-To: <5.2.0.9.0.20040118162229.00add3a8@mail.madisongrp.com> Message-ID: on 1/18/04 11:26 PM, Lee Miller at leemiller@madisongrp.com wrote: > Hi Ruslan > > The error is not at Db.BaseObjectCount. That works correctly and returns > the correct number of tables. It is the next line which reports the error. > I have tried some different arguments but page 10 of the manual clearly > states: > > BaseObject = db.BaseObject(i) > > Is this the correct method to use to return the name of the table(s) in a > database? Aha, I see. db.BaseObject returns NOT a name! It returns VBaseObject class. You need dim BaseObject as VBaseObject dim name as String BaseObject = db.BaseObject(i) name = BaseObject.Name Look in the docs for class VBaseObject. > Lee > > >> Here is the code >> >> Dim Db As VDataBase >> Dim CountOfTables As Long >> Dim sTableName As String >> Dim i As Variant > >> Set Db = CreateTestDb > >> If Not Db Is Nothing Then >> 'Load list of tables into MSFlexGrid2 >> i = 1 >> CountOfTables = Db.BaseObjectCount >> sTableName = Db.BaseObject(i) >> >> At the line CountOfTables = Db.BaseObjectCount, it returns the correct >> value, 2. >> >> The next line gives the following error >> >> "Object doesn't support this property or method." >> >> Isn't this how you locate the name of each table in a database? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sun Jan 18 23:36:37 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sun Jan 18 15:36:36 2004 Subject: Can't create method In-Reply-To: Message-ID: on 1/18/04 11:01 PM, jda at jda@his.com wrote: >> >> >> First of all check your db in the VAPP to see if method was created, >> With the same formula as you want. > > Yes, it's there and correct. > >> >> Next, add in VAPP some data in new record, >> And check if method calculate correct value. >> > > Yes, it creates a new record and has the correct value. Frankly saying no ideas. So you have had some project. You already have in this project some BaseObject methods, yes? Now you add one more. Create fresh db. Add some record and crash? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From jda at his.com Sun Jan 18 16:40:53 2004 From: jda at his.com (jda) Date: Sun Jan 18 15:40:59 2004 Subject: Can't create method In-Reply-To: References: Message-ID: > > >Frankly saying no ideas. > >So you have had some project. >You already have in this project some BaseObject methods, yes? > >Now you add one more. > >Create fresh db. > >Add some record and crash? > Exactly. I removed the kv_index and now it doesn't crash right away. I can add records. BUT, if I do a sql query ending in the words "ORDER BY authorEditorSortMethod" the database is trashed (I can no longer add or edit records without causing a crash on mycursor.update -- the cursor is not nil, BTW). I've also tried creating the method as VText instead of VVarChar, but that didn't work either. Jon From jda at his.com Sun Jan 18 17:05:35 2004 From: jda at his.com (jda) Date: Sun Jan 18 16:05:42 2004 Subject: Can't create method In-Reply-To: References: Message-ID: > > >Frankly saying no ideas. > >So you have had some project. >You already have in this project some BaseObject methods, yes? > >Now you add one more. > >Create fresh db. > >Add some record and crash? > It is very strange. The method actually works, returning the correct values when I run the app. But once I have used it to sort the data, I can't update the database without a crash. I can't even open the database again. But when I do a diagnose, the database is all right! Here is the relevant part of the crash record when I try to update a field after sorting with the new method: Exception: EXC_BAD_ACCESS (0x0001) Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x0000000c Thread 0 Crashed: 0 Plugin 0x0061526c 0x4d5000 + 0x14026c 1 Plugin 0x0061589c 0x4d5000 + 0x14089c 2 Plugin 0x00615e68 0x4d5000 + 0x140e68 3 Plugin 0x006160e0 0x4d5000 + 0x1410e0 4 Plugin 0x006144d0 0x4d5000 + 0x13f4d0 5 Plugin 0x00614530 0x4d5000 + 0x13f530 6 Plugin 0x0051a954 ClearOldValue__13FBL_BaseFieldFv + 0x24 7 Plugin 0x0054c2ac ClearOldValues__16FBL_IndexedTableFv + 0x8c 8 Plugin 0x0054b72c UpdateRecord__16FBL_IndexedTableFb + 0x19c 9 Plugin 0x005621e8 UpdateRecord__14OBL_BaseObjectFv + 0x88 10 Plugin 0x0060454c Update__24OBL_CursorTable_IndirectFv + 0x13c 11 Plugin 0x0058195c Update__10OBL_CursorFv + 0x4c 12 Plugin 0x00582f10 Update__10VDK_CursorFv + 0x30 13 Plugin 0x004ec92c Cursor_UpdateRecord__FP16REALobjectStruct + 0x6c Jon From sunshine at public.kherson.ua Mon Jan 19 00:11:09 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sun Jan 18 16:10:58 2004 Subject: Can't create method In-Reply-To: Message-ID: on 1/19/04 12:05 AM, jda at jda@his.com wrote: >> Add some record and crash? >> > > It is very strange. > > The method actually works, returning the correct values when I run > the app. But once I have used it to sort the data, I can't update the > database without a crash. I can't even open the database again. But > when I do a diagnose, the database is all right! > > Here is the relevant part of the crash record when I try to update a > field after sorting with the new method: > > Exception: EXC_BAD_ACCESS (0x0001) > Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x0000000c > > Thread 0 Crashed: > 0 Plugin 0x0061526c 0x4d5000 + 0x14026c > 1 Plugin 0x0061589c 0x4d5000 + 0x14089c > 2 Plugin 0x00615e68 0x4d5000 + 0x140e68 > 3 Plugin 0x006160e0 0x4d5000 + 0x1410e0 > 4 Plugin 0x006144d0 0x4d5000 + 0x13f4d0 > 5 Plugin 0x00614530 0x4d5000 + 0x13f530 > 6 Plugin 0x0051a954 > ClearOldValue__13FBL_BaseFieldFv + 0x24 > 7 Plugin 0x0054c2ac > ClearOldValues__16FBL_IndexedTableFv + 0x8c > 8 Plugin 0x0054b72c > UpdateRecord__16FBL_IndexedTableFb + 0x19c > 9 Plugin 0x005621e8 > UpdateRecord__14OBL_BaseObjectFv + 0x88 Looks to be a bug. Crash happens during Update record. Probably secret in your formula... Or may be some flag settings. Or may be BaseObject method type. You use 1.10 ? Must be reproducible in separate project. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From rjb at rz.uni-potsdam.de Fri Jan 16 22:18:32 2004 From: rjb at rz.uni-potsdam.de (Robert Brenstein) Date: Sun Jan 18 16:13:34 2004 Subject: Cursor_AddRecords not working In-Reply-To: <20040116204738.12126.qmail@web20405.mail.yahoo.com> References: <20040116204738.12126.qmail@web20405.mail.yahoo.com> Message-ID: >Maybe I'm just doing something wrong, but I can't get >this function to work right. Hopefully someone can >help. I'm using the VXCMD with Revolution. > >I'm getting an empty cursor by using the following >SQL: > > "SELECT * FROM Sections WHERE RecID=0" > >The cursor is getting created just fine. I've got a >variable with a list of records. Fields are tab >delimited and records are return delimited (using the >cr constant in Rev). Is there anything wrong with >this? Instead of saving multiple records when I call >Cursor_AddRecords(), it's only saving one record with >my entire string of records in the first field. Am I >doing something wrong? > >Thanks, > > >===== >Chris Sheffield >Read Naturally >www.readnaturally.com Sounds like you may have a field/record delimiter mismatch between your list and what v expects. May be you should enter them explicitely with the call. Robert From jda at his.com Sun Jan 18 17:27:43 2004 From: jda at his.com (jda) Date: Sun Jan 18 16:27:50 2004 Subject: Can't create method In-Reply-To: References: Message-ID: > > >Looks to be a bug. >Crash happens during Update record. > >Probably secret in your formula... I think it may be the formula. If I use authorEditorSortMethod.SetMethod("Upper(if (length(authors)=0, editors, authors))") it causes the crash. If I use authorEditorSortMethod.SetMethod("Upper(authors)") it works OK. Note that both methods actually "work", just the first one somehow damages the database (in a way that diagnose does not detect). >You use 1.10 ? Yes. Jon From leemiller at madisongrp.com Sun Jan 18 17:51:48 2004 From: leemiller at madisongrp.com (Lee Miller) Date: Sun Jan 18 16:51:47 2004 Subject: [VCOM] variable error Message-ID: <5.2.0.9.0.20040118174754.00adc820@mail.madisongrp.com> Ruslan I plugged your code into your other code that creates a database and 2 tables. Here is the code. Private Sub Form_Load() On Error GoTo Error 'initialize Valentina database engine V.Init 10 Dim Db As VDataBase Set Db = CreateTestDb If Not Db Is Nothing Then WORKS FINE UP TO HERE - NOW, YOUR NEW CODE Dim BaseObject As VBaseObject Dim name As String BaseObject = Db.BaseObject(1) name = BaseObject.name When it gets to "BaseObject = Db.BaseObject(1)'", here is the new error it reports: Object variable or With block variable not set Any ideas? Lee From leemiller at madisongrp.com Sun Jan 18 18:08:28 2004 From: leemiller at madisongrp.com (Lee Miller) Date: Sun Jan 18 17:08:28 2004 Subject: [VCOM] compile error Message-ID: <5.2.0.9.0.20040118180625.03b27880@mail.madisongrp.com> Ruslan, Another compile problem When the program runs, I load a grid with the name of the tables in the newly created database. Then I detect a click on a row that returns the name of the table. In the "click" event, I want to call "SQLLoad Db". The error I get is: COMPILE ERROR: variable not defined "Db" was defined in the Form_Load event as VDatabase Then Set DB = CreateTestDb creates the database and the 2 tables Then "LoadTablesToGrid Db" creates a tables list in the grid. Then "AddRecords Db" adds records to both tables Then a cursor is created through SQL. The code is: Set VC = Db.SqlSelect(sql) Then, "LoadDataToGrid VC" loads a 2nd grid. All this works. But after the form is loaded and the grids are filled, when I click on the 1st grid that contains the names of the tables and attempt to call SQLLoad Db, I get the above error. Any thoughts. Thanks Lee From frank-list2 at mindstarprods.com Sun Jan 18 18:29:35 2004 From: frank-list2 at mindstarprods.com (Frank Schima) Date: Sun Jan 18 17:29:46 2004 Subject: Question, UNION In-Reply-To: References: Message-ID: <2D6876A6-4A0E-11D8-A2A3-000A95A4E83A@mindstarprods.com> Hi Ruslan, My understanding is that you are right that the SQL standard does not say anything about UNION and record order in the result. I believe it is always implementation specific and users must use ORDER BY to guarantee a desired record order like any other SQL statement. Best regards, Frank On Jan 18, 2004, at 1:16 PM, Ruslan Zasukhin wrote: > Hi guys, > > We here have small discussion (between Valentina developers) > And I want ask, may be somebody have prompt us. > > Let we have > > SELECT ... > UNION > SELECT ... > > > My opinion is that SQL do not guarantee ORDER OF RECORDS in the result, > Until you specify ORDER BY. > > > Ivan, says that Sybase, Oracle and MS SQL, all return result in order > at first records of FIRST SELECT, then records of SECOND. > > We have check, and it seems to be true. They return result in this way. > > The funny is, that we can produce result by MY way, more faster, than > if we > will try save order of records. > > > I do not see any reason why UNION must work in the way as it works in > Sybase, and others.... > > We have not found any words about this in the standard... > may be we are blind? > > > So does anybody have any additional info about this? > > --------- > BTW, Ivan, > > I think that in the case we have > > SELECT ... > UNION > SELECT ... > ORDER BY > > We can use the first way and algorithm, because for such query > It is exactly not needed to make special order for UNION, > It will be changed by ORDER BY later. > > So in the worse case, we can have 2 algorithms. > The first will eat less RAM. > > What you think? > > > -- > Best regards, > Ruslan Zasukhin [ I feel the need...the need for speed ] > ------------------------------------------------------------- > e-mail: ruslan@paradigmasoft.com > web: http://www.paradigmasoft.com > > To subscribe to the Valentina mail list go to: > http://lists.macserve.net/mailman/listinfo/valentina > ------------------------------------------------------------- > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > From jda at his.com Sun Jan 18 18:41:36 2004 From: jda at his.com (jda) Date: Sun Jan 18 17:41:43 2004 Subject: Can't create method In-Reply-To: References: Message-ID: > >Looks to be a bug. >Crash happens during Update record. > >Probably secret in your formula... I've diagnosed this as far as I can. This is the problem: authorEditorSortMethod.SetMethod("Upper(if(length(authors)=0,editors,authors))") It's the authors field that is trashed when I use this method -- attempts to update the authors field -> crash. If I substitute another field, e.g. authorEditorSortMethod.SetMethod("Upper(if(length(title)=0,editors,authors))") then the authors field is OK. But if I subsequently try to edit the title field, it crashes. Furthermore, I think it's the length function that's the problem. If I use authorEditorSortMethod.SetMethod("Upper(if(authors='',editors,authors))") the database is not corrupted (the sort doesn't work properly, though). So, Ruslan, it looks like the length function in this method is causing damage to the field whose length is being checked. Jon From giv at tlc.kherson.ua Mon Jan 19 09:40:27 2004 From: giv at tlc.kherson.ua (Igor Gomon) Date: Mon Jan 19 01:40:36 2004 Subject: [VCOM] compile error References: <5.2.0.9.0.20040118180625.03b27880@mail.madisongrp.com> Message-ID: <004501c3de5f$858d1160$b61226c3@giv> > Ruslan, > > Another compile problem > > When the program runs, I load a grid with the name of the tables in the > newly created database. Then I detect a click on a row that returns the > name of the table. In the "click" event, I want to call "SQLLoad Db". The > error I get is: > > COMPILE ERROR: variable not defined > > "Db" was defined in the Form_Load event as VDatabase > Then Set DB = CreateTestDb creates the database and the 2 tables > Then "LoadTablesToGrid Db" creates a tables list in the grid. > Then "AddRecords Db" adds records to both tables > Then a cursor is created through SQL. The code is: > Set VC = Db.SqlSelect(sql) > Then, "LoadDataToGrid VC" loads a 2nd grid. > > All this works. But after the form is loaded and the grids are filled, when > I click on the 1st grid that contains the names of the tables and attempt > to call SQLLoad Db, I get the above error. Just define Db variable at the form level insteaf of handler level. I.e. put Dim Db as VDataBase outside of all form1 methods, for example at the beginning of form code. -- Best regards, Igor Gomon ------------------------------------------------------------- e-mail: giv_ua@inbox.ru web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://listserv.macserve.net/mailman/listinfo/valentina From giv at tlc.kherson.ua Mon Jan 19 09:37:03 2004 From: giv at tlc.kherson.ua (Igor Gomon) Date: Mon Jan 19 01:40:44 2004 Subject: [VCOM] variable error References: <5.2.0.9.0.20040118174754.00adc820@mail.madisongrp.com> Message-ID: <004401c3de5f$84430530$b61226c3@giv> Hi Lee, > Ruslan > > I plugged your code into your other code that creates a database and 2 > tables. Here is the code. > > Private Sub Form_Load() > On Error GoTo Error > > 'initialize Valentina database engine > V.Init 10 > > Dim Db As VDataBase > Set Db = CreateTestDb > If Not Db Is Nothing Then > > WORKS FINE UP TO HERE - NOW, YOUR NEW CODE > > Dim BaseObject As VBaseObject > Dim name As String > > BaseObject = Db.BaseObject(1) > name = BaseObject.name > > When it gets to "BaseObject = Db.BaseObject(1)'", here is the new error it > reports: > > Object variable or With block variable not set > > Any ideas? Of course, in VB6 you must use 'set' keyword when initializing object variable. So just write: Set BaseObject = Db.BaseObject(1) -- Best regards, Igor Gomon ------------------------------------------------------------- e-mail: giv_ua@inbox.ru web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://listserv.macserve.net/mailman/listinfo/valentina From sunshine at public.kherson.ua Mon Jan 19 09:46:46 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Jan 19 01:46:46 2004 Subject: Can't create method In-Reply-To: Message-ID: on 1/19/04 1:41 AM, jda at jda@his.com wrote: >> Looks to be a bug. >> Crash happens during Update record. >> >> Probably secret in your formula... > > I've diagnosed this as far as I can. This is the problem: > > > authorEditorSortMethod.SetMethod("Upper(if(length(authors)=0,editors,authors)) > ") > > > It's the authors field that is trashed when I use this method -- > attempts to update the authors field -> crash. If I substitute > another field, e.g. > > > authorEditorSortMethod.SetMethod("Upper(if(length(title)=0,editors,authors))") > > then the authors field is OK. But if I subsequently try to edit the > title field, it crashes. > > > Furthermore, I think it's the length function that's the problem. If I use > > authorEditorSortMethod.SetMethod("Upper(if(authors='',editors,authors))") > > > the database is not corrupted (the sort doesn't work properly, though). > > So, Ruslan, it looks like the length function in this method is > causing damage to the field whose length is being checked. Can you make test example with one table and 2-3 fields and one method? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Mon Jan 19 09:51:14 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Jan 19 01:52:18 2004 Subject: Question, UNION In-Reply-To: <2D6876A6-4A0E-11D8-A2A3-000A95A4E83A@mindstarprods.com> Message-ID: on 1/19/04 1:29 AM, Frank Schima at frank-list2@mindstarprods.com wrote: > Hi Ruslan, > > > My understanding is that you are right that the SQL standard does not > say anything about UNION and record order in the result. I believe it > is always implementation specific and users must use ORDER BY to > guarantee a desired record order like any other SQL statement. Hi Frank, Thank you for info. I wonder, can you check on your side Sybase, Oracle, MS SQL, Any other big db, to see self ? I afraid you will find that they do provide order FIRST, SECOND. I do not understand why?! May be of course they use some strange algorithms, but algorithm which I like is more fast. I am sure. > Best regards, > Frank > > On Jan 18, 2004, at 1:16 PM, Ruslan Zasukhin wrote: > >> Hi guys, >> >> We here have small discussion (between Valentina developers) >> And I want ask, may be somebody have prompt us. >> >> Let we have >> >> SELECT ... >> UNION >> SELECT ... >> >> >> My opinion is that SQL do not guarantee ORDER OF RECORDS in the result, >> Until you specify ORDER BY. >> >> >> Ivan, says that Sybase, Oracle and MS SQL, all return result in order >> at first records of FIRST SELECT, then records of SECOND. >> >> We have check, and it seems to be true. They return result in this way. >> >> The funny is, that we can produce result by MY way, more faster, than >> if we >> will try save order of records. >> >> >> I do not see any reason why UNION must work in the way as it works in >> Sybase, and others.... >> >> We have not found any words about this in the standard... >> may be we are blind? >> >> >> So does anybody have any additional info about this? >> >> --------- >> BTW, Ivan, >> >> I think that in the case we have >> >> SELECT ... >> UNION >> SELECT ... >> ORDER BY >> >> We can use the first way and algorithm, because for such query >> It is exactly not needed to make special order for UNION, >> It will be changed by ORDER BY later. >> >> So in the worse case, we can have 2 algorithms. >> The first will eat less RAM. >> >> What you think? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From xyzabc1010 at yahoo.com Mon Jan 19 09:17:41 2004 From: xyzabc1010 at yahoo.com (X Y) Date: Mon Jan 19 11:17:47 2004 Subject: What is error -61? Message-ID: <20040119171741.72745.qmail@web21102.mail.yahoo.com> Hi All, I tried looking through the archive but the search returned nothing. Does anybody know what this error is? __________________________________ Do you Yahoo!? Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus From sunshine at public.kherson.ua Mon Jan 19 19:36:38 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Jan 19 11:38:18 2004 Subject: What is error -61? In-Reply-To: <20040119171741.72745.qmail@web21102.mail.yahoo.com> Message-ID: on 1/19/04 7:17 PM, X Y at xyzabc1010@yahoo.com wrote: > Hi All, > I tried looking through the archive but the search > returned nothing. Does anybody know what this error is? This is MAC OS error. -61 wrPermErr Write permissions error; Not a publisher -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From delong at redcort.com Mon Jan 19 09:46:54 2004 From: delong at redcort.com (Keith DeLong) Date: Mon Jan 19 11:47:01 2004 Subject: What is error -61? In-Reply-To: Message-ID: > on 1/19/04 7:17 PM, X Y at xyzabc1010@yahoo.com wrote: > >> Hi All, >> I tried looking through the archive but the search >> returned nothing. Does anybody know what this error is? > > This is MAC OS error. > > -61 wrPermErr Write permissions error; Not a publisher In V4RB under OS X -61 means you just tried to write to a V4RB database that someone else opened before you (or it was left open by a previous crash). Best, Keith DeLong -- Redcort Software & Development http://redcort.com From sunshine at public.kherson.ua Mon Jan 19 20:00:41 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Jan 19 12:00:31 2004 Subject: What is error -61? In-Reply-To: <20040119171741.72745.qmail@web21102.mail.yahoo.com> Message-ID: on 1/19/04 7:17 PM, X Y at xyzabc1010@yahoo.com wrote: > Hi All, > I tried looking through the archive but the search > returned nothing. Does anybody know what this error is? Harry, Btw, have you get project for V4MD that show how do exclusive open/close With use of .lock file? I have CC this project to you. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From xyzabc1010 at yahoo.com Mon Jan 19 10:08:37 2004 From: xyzabc1010 at yahoo.com (X Y) Date: Mon Jan 19 12:08:43 2004 Subject: What is error -61? In-Reply-To: Message-ID: <20040119180837.95106.qmail@web21107.mail.yahoo.com> Actually, I am trying to avoid the use of .lock files. Is there any other work arounds? I am trying to open the db, write to the db and catch an error if you cannot write to the file? thnx --- Ruslan Zasukhin wrote: > on 1/19/04 7:17 PM, X Y at xyzabc1010@yahoo.com > wrote: > > > Hi All, > > I tried looking through the archive but the search > > returned nothing. Does anybody know what this > error is? > > Harry, > > Btw, have you get project for V4MD that show how do > exclusive open/close > With use of .lock file? > > I have CC this project to you. > > -- > Best regards, > Ruslan Zasukhin [ I feel the need...the need > for speed ] > ------------------------------------------------------------- > e-mail: ruslan@paradigmasoft.com > web: http://www.paradigmasoft.com > > To subscribe to the Valentina mail list go to: > http://lists.macserve.net/mailman/listinfo/valentina > ------------------------------------------------------------- > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina __________________________________ Do you Yahoo!? Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus From sunshine at public.kherson.ua Mon Jan 19 20:13:05 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Jan 19 12:13:49 2004 Subject: What is error -61? In-Reply-To: <20040119180837.95106.qmail@web21107.mail.yahoo.com> Message-ID: on 1/19/04 8:08 PM, X Y at xyzabc1010@yahoo.com wrote: > Actually, > I am trying to avoid the use of .lock files. Is there > any other work arounds? I afraid no. All described in that TN of Apple. The best way -- use Valentina server. > I am trying to open the db, write to the db and catch > an error if you cannot write to the file? OS X (unix) do allow multiple writers !!! That is the problem. You will not get error from OS X. Please read TN. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From xyzabc1010 at yahoo.com Mon Jan 19 10:34:30 2004 From: xyzabc1010 at yahoo.com (X Y) Date: Mon Jan 19 12:34:36 2004 Subject: What is error -61? In-Reply-To: Message-ID: <20040119183430.4850.qmail@web21101.mail.yahoo.com> Ruslan, Thanks for the pointer. I was reading the TN, and was wondering if you open the files and place and advisory lock on it. I can then write code to check for the advisory lock. thnx __________________________________ Do you Yahoo!? Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus From sunshine at public.kherson.ua Mon Jan 19 20:39:09 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Jan 19 12:38:59 2004 Subject: What is error -61? In-Reply-To: <20040119183430.4850.qmail@web21101.mail.yahoo.com> Message-ID: on 1/19/04 8:34 PM, X Y at xyzabc1010@yahoo.com wrote: > Ruslan, > Thanks for the pointer. I was reading the TN, and was > wondering if you open the files and place and advisory > lock on it. I can then write code to check for the > advisory lock. You mean OS LOCK on file? No I do not do this. reasons 1) historically this was NOT needed for OS 9 and WIN 2) if I add this now then this will little slow down WIN and OS 9. 3) and we have now Vserver... -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From xyzabc1010 at yahoo.com Mon Jan 19 10:58:58 2004 From: xyzabc1010 at yahoo.com (X Y) Date: Mon Jan 19 12:59:04 2004 Subject: What is error -61? In-Reply-To: Message-ID: <20040119185858.98157.qmail@web21109.mail.yahoo.com> I think advisory locks is just adding fd = open( "./foo", O_RDWR + O_EXLOCK + O_NONBLOCK ); Excuse my ignorance, but is this an OS lock? thnx, -- h --- Ruslan Zasukhin wrote: > on 1/19/04 8:34 PM, X Y at xyzabc1010@yahoo.com > wrote: > > > Ruslan, > > Thanks for the pointer. I was reading the TN, and > was > > wondering if you open the files and place and > advisory > > lock on it. I can then write code to check for the > > advisory lock. > > You mean OS LOCK on file? > > No I do not do this. > > reasons > > 1) historically this was NOT needed for OS 9 and WIN > > 2) if I add this now then this will little slow down > WIN and OS 9. > > 3) and we have now Vserver... > > > -- > Best regards, > Ruslan Zasukhin [ I feel the need...the need > for speed ] > ------------------------------------------------------------- > e-mail: ruslan@paradigmasoft.com > web: http://www.paradigmasoft.com > > To subscribe to the Valentina mail list go to: > http://lists.macserve.net/mailman/listinfo/valentina > ------------------------------------------------------------- > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina __________________________________ Do you Yahoo!? Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus From sunshine at public.kherson.ua Mon Jan 19 21:03:50 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Jan 19 13:03:40 2004 Subject: What is error -61? In-Reply-To: <20040119185858.98157.qmail@web21109.mail.yahoo.com> Message-ID: on 1/19/04 8:58 PM, X Y at xyzabc1010@yahoo.com wrote: > I think advisory locks is just adding > > fd = open( "./foo", O_RDWR + O_EXLOCK + O_NONBLOCK ); > > Excuse my ignorance, but is this an OS lock? No. O_EXLOCK -- this is request to open file in EXCLUSIVE mode. This is why I do actually. But this not works in OS X. OS lock on file range, is special C function call Something as file_lock( this file, from this byte, to that byte ) -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From xyzabc1010 at yahoo.com Mon Jan 19 11:29:08 2004 From: xyzabc1010 at yahoo.com (X Y) Date: Mon Jan 19 15:15:54 2004 Subject: hybrid environments In-Reply-To: Message-ID: <20040119192909.15832.qmail@web21101.mail.yahoo.com> Hi All, So if you have the vdb files on a MAC OSX and running the application on a windows machine? Will you run into the same locking problem? o or does the problem occur when the application is running solely on the a MAC OSX regardless of what OS the db file resides in? thnx -- h __________________________________ Do you Yahoo!? Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus From forgete at cafederic.com Mon Jan 19 16:19:11 2004 From: forgete at cafederic.com (Eric Forget) Date: Mon Jan 19 15:21:12 2004 Subject: hybrid environments In-Reply-To: <20040119192909.15832.qmail@web21101.mail.yahoo.com> Message-ID: > So if you have the vdb files on a MAC OSX and running > the application on a windows machine? Will you run > into the same locking problem? o > > or > > does the problem occur when the application is > running solely on the a MAC OSX regardless of what OS > the db file resides in? I believe the problem will appear when the database is on Mac OS X, whatever were the application is. It is a file system behavior. Eric ___________________________________________________________________ Eric Forget Cafederic ForgetE@cafederic.com Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684> From sunshine at public.kherson.ua Tue Jan 20 00:13:40 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Jan 19 16:15:50 2004 Subject: hybrid environments In-Reply-To: Message-ID: on 1/19/04 11:19 PM, Eric Forget at forgete@cafederic.com wrote: >> So if you have the vdb files on a MAC OSX and running >> the application on a windows machine? Will you run >> into the same locking problem? o >> >> or >> >> does the problem occur when the application is >> running solely on the a MAC OSX regardless of what OS >> the db file resides in? > > I believe the problem will appear when the database is on Mac OS X, whatever > were the application is. It is a file system behavior. Agree. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From timdavis at amug.org Tue Jan 20 10:07:29 2004 From: timdavis at amug.org (Tim Davis) Date: Tue Jan 20 11:07:36 2004 Subject: not equal related query Message-ID: <21038E9A-4B6B-11D8-B58A-000A95D87648@amug.org> Hi, This may be a really simple question but the answer is eluding me. How do we create in Valentina's SQL a search which includes a lookup of a field in one table does not equal in another table? Think of it like an error checking query. Example: SELECT * FROM t1, t2 WHERE t1.RecID = t2.t1ptr AND NOT t1.field1 = t2.field1 Thanks, Tim Davis VSRV, V4RB From sunshine at public.kherson.ua Tue Jan 20 19:34:35 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Jan 20 11:34:24 2004 Subject: not equal related query In-Reply-To: <21038E9A-4B6B-11D8-B58A-000A95D87648@amug.org> Message-ID: on 1/20/04 7:07 PM, Tim Davis at timdavis@amug.org wrote: > Hi, > > This may be a really simple question but the answer is eluding me. > How do we create in Valentina's SQL a search which includes a lookup of > a field in one table does not equal in another table? Think of it like > an error checking query. > > Example: > SELECT * > FROM t1, t2 > WHERE t1.RecID = t2.t1ptr > AND NOT t1.field1 = t2.field1 Hi Tim, This one not works. Works just fld = const 2 days ago about the same have ask Dave on this list. Must works in 2.0 -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Tue Jan 20 19:47:25 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Jan 20 11:47:27 2004 Subject: [SQL] Related table question In-Reply-To: Message-ID: on 1/18/04 8:20 PM, Eric Forget at forgete@cafederic.com wrote: > 13) > a.RecID in (select ptr from keyword where name = 'Me') > AND > a.RecID in (select ptr from keyword where name = 'YOU') > > Result: CalcID Label > > Instead of: CalcID Label > 1 2 > select A.calcId, A.label from a where a.RecID in (select ptr from keyword where name = 'Me' AND name = 'YOU' ) -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Tue Jan 20 19:48:19 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Jan 20 11:48:07 2004 Subject: [SQL] Related table question In-Reply-To: Message-ID: on 1/18/04 8:20 PM, Eric Forget at forgete@cafederic.com wrote: > 14) > a.RecID in (select ptr from keyword where name = 'Me') > OR > a.RecID in (select ptr from keyword where name = 'YOU') > > Result: CalcID Label > 1 2 > > Instead of: CalcID Label > 1 2 > 2 3 select A.calcId, A.label from a where a.RecID in (select ptr from keyword where name = 'Me' OR name = 'YOU' ) -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Tue Jan 20 20:40:56 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Jan 20 12:40:53 2004 Subject: [SQL] Related table question In-Reply-To: Message-ID: on 1/18/04 8:20 PM, Eric Forget at forgete@cafederic.com wrote: > 15) > a.RecID in (select ptr from keyword where name = 'Me') > OR > a.RecID not in (select ptr from keyword where name <> 'YOU') > > Result: CalcID Label > 1 2 > 3 7 > 4 6 > > Instead of: CalcID Label > 1 2 > 2 3 > 3 7 > 4 6 Note, that we need get something as select A.calcId, A.label from a where a.RecID in (1) OR NOT (a.RecID in (1,2)) By the way, Eric, it is a way -- that at first you make query, Then build list of RecIDs and execute second query. ANSWER FOR YOU select A.calcId, A.label from a where a.RecID in (select ptr from keyword where name = 'Me') OR NOT( a.RecID in (select A.RecID FROM A, keyword, WHERE A.RecID = keyword.ptr and name <> 'YOU') ) -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Tue Jan 20 20:54:12 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Jan 20 12:54:01 2004 Subject: malloc errors on ValentinaShutDown In-Reply-To: Message-ID: on 1/20/04 8:29 PM, bob.wright@robins.af.mil at bob.wright@robins.af.mil wrote: > Name: Bob Wright > > Problem with: VSDK > Type of problem: crash Hi Bob, > My app under development was working ine until I added some links between my > tables (VDK_ObjectPtr). Now when I call ValentinaShutDown I get 8 to 10 > malloc errors > "Deallocation of a pointer not malloced - could be a double > free(), or free called with the middle of an allocated block". > I have isolated the source of these errors to being the construction of my > first table which contains an VDK_ObjectPtr field. > If I call ValentinaShutDown() immediately upon constructing this table - the > malloc errors show up. The program seems to work fine but the malloc errors > bother me. > > I am using Valentina SDK C++, Cocoa APIs, XCode 1.1, MacOS X.3. > > Any ideas? IF you create ObjectPtr in the FIRST table, then where it points? On some other table I assume, yes? But how you can point on table which you have not create yet? Please check if this is an issue. IF yes, then you have 2 ways: 1) change order of VDK_BaseObjects creation. 2) sometimes we have tables with recursive pointers. So change of order will not help. To resolve this problem, you need a) in the first table create VDK_ObjectPtr with NULL as target table b) AFTER you create all tables, assign Target table to that ObjetcPtr using VDK_OBjectPtr::setTarget( VDK_BaseObject* ) > Thanks, > Bob Wright > U. S. Air Force > Robins AFB, GA -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From gregkowalski at earthlink.net Tue Jan 20 14:01:15 2004 From: gregkowalski at earthlink.net (Greg Kowalski) Date: Tue Jan 20 12:59:19 2004 Subject: Navigation question Message-ID: Hello, I am learning how to use V4MD and encountered a strange situation. When I use nextrecord(gMyCursor) to cycle forward through results everything is fine, but when I use the prevrecord(gMyCursor) to cycle backwards it doesn't work (returns 0). The handler is truly very simple: (after having made the query) global gmycursor on mouseup prevrecord(gmycursor) put getfield(gmycursor, "name") into field "name" end On the other hand: global gmycursor on mouseup nextrecord(gmycursor) put getfield(gmycursor, "name") into field "name" end works fine. Thank you for your help. Greg From guillermo at parsec.info Tue Jan 20 20:02:47 2004 From: guillermo at parsec.info (Guillermo) Date: Tue Jan 20 13:03:20 2004 Subject: [V4RB] Problem searching Message-ID: <3CAEC3F4-4B7B-11D8-9398-000393D43560@parsec.info> I have a problem with V4RB, when I made a select with boolean calculated column in the where clause, never found any record. Example: select * from table with boolean_calculated_column = true; // Don't found any record select * from table with boolean_calculated_column = false; // Don't found any record too !!! From forgete at cafederic.com Tue Jan 20 14:04:17 2004 From: forgete at cafederic.com (Eric Forget) Date: Tue Jan 20 13:06:21 2004 Subject: Navigation question In-Reply-To: Message-ID: > When I use nextrecord(gMyCursor) to cycle forward through results everything > is fine, but when I use the prevrecord(gMyCursor) to cycle backwards it > doesn't work (returns 0). When you create your cursor you must specify that you want random access to it. By default it is forward only. Check the documentation, since I'm using the VSDK and don't know too much about V4MD. Eric ___________________________________________________________________ Eric Forget Cafederic ForgetE@cafederic.com Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684> From timdavis at amug.org Tue Jan 20 12:11:35 2004 From: timdavis at amug.org (Tim Davis) Date: Tue Jan 20 13:11:43 2004 Subject: not equal related query In-Reply-To: References: Message-ID: <77728703-4B7C-11D8-B58A-000A95D87648@amug.org> On Jan 20, 2004, at 10:34 AM, Ruslan Zasukhin wrote: > Must works in 2.0 I am SOOOO much looking forward to 2.0!! :-) Tim Davis From erichg at mcmm.com Tue Jan 20 20:54:21 2004 From: erichg at mcmm.com (Erich Geiersberger) Date: Tue Jan 20 13:54:39 2004 Subject: [VServer] NT4 error 10093 Message-ID: Hi Ruslan, I have VServer running on a XP machine and try to connect from clients. No problems from XP or 2000 machines, but from an NT4 workstation I had difficulties. I can create a Vserver instance, it will report the port number, but on opensession() I get an error 10093 (seems to be: a DNS lookup failed) available() reports 0, also GetConnectionCount() reports 0 I also tried to ping the servers IP - it answered. This is weird, what may be wrong here? Second problem: - VServer shut down When I try to open the master database with V4MD_Client, the object gets created. Open database gives no error even when the server is not running at all. Only when I try to access data, I get errors. First error (on BaseObjectsToList ): error 5 Bug? Together these two problems really give me big headache since I don't find a convenient way to log in users and give feedback if something is wrong. Erich From sunshine at public.kherson.ua Tue Jan 20 23:57:31 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Jan 20 15:58:02 2004 Subject: [V4RB] Problem searching In-Reply-To: <3CAEC3F4-4B7B-11D8-9398-000393D43560@parsec.info> Message-ID: on 1/20/04 9:02 PM, Guillermo at guillermo@parsec.info wrote: > I have a problem with V4RB, when I made a select with boolean > calculated column in the where clause, never found any record. Hi Guillermo, BaseObject Method of boolean type is 100% the same by eating of RAM as BaseObject method of UCHAR type. That was a reason why I stupidly did not implement BaseObject methods of boolean type. So simply change type of method to UCHAR and all will works. > Example: > > select * from table with boolean_calculated_column = true; // Don't > found any record > select * from table with boolean_calculated_column = false; // Don't > found any record too !!! -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Wed Jan 21 00:06:37 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Jan 20 16:06:25 2004 Subject: [VServer] NT4 error 10093 In-Reply-To: Message-ID: on 1/20/04 9:54 PM, Erich Geiersberger at erichg@mcmm.com wrote: Hi Erich, > I have VServer running on a XP machine and try to connect from clients. > No problems from XP or 2000 machines, but from an NT4 workstation I > had difficulties. > > I can create a Vserver instance, it will report the port number, but > on opensession() I get an error 10093 (seems to be: a DNS lookup > failed) > > available() reports 0, also GetConnectionCount() reports 0 > I also tried to ping the servers IP - it answered. > > This is weird, what may be wrong here? We need wait for Igor's answer. As I remember from this issue: - when you enter IP of computer to connect, Vserver do DNS lookup to try change IP on its symbolic name. E.g. 111.222.545.87 -> www.paradigmasoft.com Sometimes DNS lookup is not available. I wonder that this cause ERROR, I think Igor should check this and redo to still continue. -- also sometimes you can wish set this OFF, to not waste time on DNS lookup. I do not remember if this flag already was added to Vserver. Igor? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Wed Jan 21 00:10:46 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Jan 20 16:10:49 2004 Subject: [VServer] NT4 error 10093 In-Reply-To: Message-ID: on 1/20/04 9:54 PM, Erich Geiersberger at erichg@mcmm.com wrote: > Second problem: > - VServer shut down > When I try to open the master database with V4MD_Client, the object > gets created. Open database gives no error even when the server is > not running at all. Only when I try to access data, I get errors. > First error (on BaseObjectsToList ): error 5 > Bug? > > Together these two problems really give me big headache since I don't > find a convenient way to log in users and give feedback if something > is wrong. Erich , Please describe in DETAILS STEP BY STEP what you want to do with users logins. Describe your task. Igor will think and offer you a way. Also he can add this way to our tests to make sure it works. Please describe also why standard way RegisterUser() is not fine for you. Okay? --------- BTW, I do not understand, you start this section with VServer shut down, But you describe problem with access to Master db. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From mdeh at earthlink.net Tue Jan 20 15:42:38 2004 From: mdeh at earthlink.net (Michael de Haan) Date: Tue Jan 20 17:42:46 2004 Subject: (no subject) Message-ID: <54F3237A-4BA2-11D8-85DC-000A9566BB4A@earthlink.net> Ruslan, Please help: The following does not match: SELECT cCode, cDesc, cVal FROM iCpts WHERE cDesc LIKE '\AOF BENIGN\Z' no_case but the following does: SELECT cCode, cDesc, cVal FROM iCpts WHERE cDesc LIKE 'OF BENIGN' no_case Any insight? tks in advance From erichg at mcmm.com Wed Jan 21 00:52:22 2004 From: erichg at mcmm.com (Erich Geiersberger) Date: Tue Jan 20 17:52:38 2004 Subject: [VServer] NT4 error 10093 In-Reply-To: References: Message-ID: >Erich , > >Please describe in DETAILS STEP BY STEP what you want >to do with users logins. > >Describe your task. > >Igor will think and offer you a way. >Also he can add this way to our tests to make sure it works. > >Please describe also why standard way RegisterUser() is not fine for you. >Okay? Hi Igor and Ruslan, I am already using RegisterUser() and it seems to work fine. I only access the master database to compare user names and passwords. But the problem is somewehere else. Ok. My network database is an upgrade from already existing single user version of a V12 databse. Users have settings of their own (printer margins, print layout options, email address and others) These settings need to get splitted in user settings and global settings only editable by admin during installation. So, I have a user database of my own with user names their settings. There is also a one record database for the admin with global settings for all users. During installation of the database, existing installations of the old program version somewhere in the network can be opened. I extract these data and write part of it to the global settings and part of it to the user settings for admin. This works. On installation of clients, client is asked for user name and password. He gets added to my user database and gets his own user settings record. There is also an option for installation of a single place version. So all data needed are kept within my own database. In a single place version the user is admin and has access to both global and user settings. This makes it easy to upgrade a single place to a server version. Also works. When a client logs in, there are a number of possibilities and here is where the problems start: I need to know: - if the datbase is up and running to avoid errors - name and password I can check for user name with VServer Xtra, but not for password. So I open the master database to compare it in order to give feedback on error. - if user already exists if not he can register himself as a new user with username and password. On NT4 we often needed a couple of tries before the user could log in. So, I checked my login script in authoring mode and found out that: - Even though I checked for Valentinaerror after opendatabase() there was no error when I tried to open the master database on the server even though it was not running at all. Only the baseObjectsToList() method gave an error 5 in this case. To find out why this happened, I added a function to check for the network database before the user logs in. This is the script: on checkserver global ghostname cnt = void myserver = new(xtra "Vserver", ghostname, myAdmin, myPassword) myerror = ValentinaError() put "checkserver error" && myerror if myerror <> 0 then if VErrorHandler(myerror) then myserver = void return void end if end if OpenSession(myserver) myerror = ValentinaError() if myerror <> 0 then if VErrorHandler(myerror) then myserver = void return void end if end if cnt = GetConnectionCount(myserver) CloseSession(myserver) myserver = void return cnt end And this is what I get in the message window: gdebugkey = 1 valentinadebuglevel(2,1) * V4MD *: ValentinaSetDebugMode...done -- "1 0" * V4MD *: new VServer...done * V4MD *: ValentinaError...done -- "checkserver error 0" * V4MD *: OpenSession...error 10093 * V4MD *: ValentinaError...error 10093 * V4MD *: VServer_Destroy...done I also tried it once again directly from the message window: myserver = new(xtra "Vserver", ghostname, myAdmin, myPassword) * V4MD *: new VServer...done put GetVersion(myserver) * V4MD *: GetVersion...done -- put OpenSession(myserver) * V4MD *: OpenSession...error 10093 -- put GetConnectionCount(myserver) * V4MD *: GetConnectionCount...done -- 0 put Available(myserver) * V4MD *: Available...done -- 0 The scripts work fine with the same files, the same user names and passwords when I run in on a Windows 2000 machine in the same network. So this is somehow related to the NT4 workstation (There is also a NT4 server running in the same network if this helps you any further) Erich From sunshine at public.kherson.ua Wed Jan 21 01:55:34 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Jan 20 17:55:26 2004 Subject: (no subject) In-Reply-To: <54F3237A-4BA2-11D8-85DC-000A9566BB4A@earthlink.net> Message-ID: on 1/21/04 1:42 AM, Michael de Haan at mdeh@earthlink.net wrote: > Ruslan, > > Please help: > > The following does not match: > > SELECT cCode, cDesc, cVal FROM iCpts WHERE cDesc LIKE '\AOF BENIGN\Z' > no_case > > > but the following does: > > > SELECT cCode, cDesc, cVal FROM iCpts WHERE cDesc LIKE 'OF BENIGN' > no_case > > Any insight? Hi Michael, The first will match only if you have record that contains value EXACTLY as 'OF BENIGN' But not e.g. 'something OF BENIGN something' -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From erichg at mcmm.com Wed Jan 21 01:29:04 2004 From: erichg at mcmm.com (Erich Geiersberger) Date: Tue Jan 20 18:29:13 2004 Subject: [VServer] NT4 error 10093 In-Reply-To: References: Message-ID: >We need wait for Igor's answer. > >As I remember from this issue: > >- when you enter IP of computer to connect, Vserver do DNS lookup to try >change IP on its symbolic name. E.g. > > 111.222.545.87 -> www.paradigmasoft.com > >Sometimes DNS lookup is not available. Ping 192.168.0.34 worked >I wonder that this cause ERROR, >I think Igor should check this and redo to still continue. > > >-- also sometimes you can wish set this OFF, to not waste time on DNS >lookup. I do not remember if this flag already was added to Vserver. Hmm, I saw DNS lookup mentioned in the Server docs as an option for the ini settings. I didn't change anything there. For the Vserver Xtra there are [Options], but do documentation here. I get some sleep now. Will be back tomorrow.. From fvanlerberghe at freegates.be Wed Jan 21 08:45:58 2004 From: fvanlerberghe at freegates.be (Francois Van Lerberghe) Date: Wed Jan 21 01:45:52 2004 Subject: What is error -61? In-Reply-To: Message-ID: le 19/01/04 18:46, Keith DeLong a ?crit?: >> -61 wrPermErr Write permissions error; Not a publisher > > > In V4RB under OS X -61 means you just tried to write to a V4RB database that > someone else opened before you (or it was left open by a previous crash). I'm not sure to understand completely what's happening. If MacOS X allow multiple writer and don't provide exclusive lock (as described in the TN), why can we get an error -61 ? Fran?ois Van Lerberghe Rue Thier Monty, 15 A 4570 Marchin Belgique From sunshine at public.kherson.ua Wed Jan 21 09:58:19 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Jan 21 02:00:14 2004 Subject: What is error -61? In-Reply-To: Message-ID: on 1/21/04 9:45 AM, Francois Van Lerberghe at fvanlerberghe@freegates.be wrote: > le 19/01/04 18:46, Keith DeLong a ?crit?: > >>> -61 wrPermErr Write permissions error; Not a publisher >> >> >> In V4RB under OS X -61 means you just tried to write to a V4RB database that >> someone else opened before you (or it was left open by a previous crash). > > I'm not sure to understand completely what's happening. > If MacOS X allow multiple writer and don't provide exclusive lock (as > described in the TN), why can we get an error -61 ? In MacOS X we will not get it. You an easy reproduce. Make COPY of VAPP or your projector. Run both copies, from each copy open some db. They open it. Real Problem come when both apps will try write something into the same db. This operation can corrupt db. ------- Please note: Valentina was NEVER positioned as db that can do shared access to db files. Shared Access, as you know -- is old way which was used BEFORE client/server technologies was born. Shared Access is very slow and not effective. -- we cannot have real cache -- when you open db from other computer, and do e.g. Search then indexes are loaded into RAM of your computer. => big network traffic. We are not going patch Valentina to support shared access, Mainly because this must be made on kernel level and require MORE operations calls to file system, which can slow down overall speed of kernel. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From giv at tlc.kherson.ua Wed Jan 21 10:08:34 2004 From: giv at tlc.kherson.ua (Igor Gomon) Date: Wed Jan 21 02:08:51 2004 Subject: [VServer] NT4 error 10093 References: Message-ID: <001501c3dff5$c64f1940$b31226c3@giv> Hi Erich, > I have VServer running on a XP machine and try to connect from clients. > No problems from XP or 2000 machines, but from an NT4 workstation I > had difficulties. > > I can create a Vserver instance, it will report the port number, but > on opensession() I get an error 10093 (seems to be: a DNS lookup > failed) This is the 10093 error description from MSDN: Successful WSAStartup not yet performed. Either the application has not called WSAStartup or WSAStartup failed. So, the real question is: did you call ValentinaInit() before using VServer Xtra? -- Best regards, Igor Gomon ------------------------------------------------------------- e-mail: giv_ua@inbox.ru web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://listserv.macserve.net/mailman/listinfo/valentina From giv at tlc.kherson.ua Wed Jan 21 10:34:45 2004 From: giv at tlc.kherson.ua (Igor Gomon) Date: Wed Jan 21 02:37:07 2004 Subject: [VServer] NT4 error 10093 References: Message-ID: <002001c3dff9$ba5c7ca0$b21226c3@giv> Hi Erich, > on checkserver > global ghostname > cnt = void > myserver = new(xtra "Vserver", ghostname, myAdmin, myPassword) > myerror = ValentinaError() > put "checkserver error" && myerror > if myerror <> 0 then > if VErrorHandler(myerror) then > myserver = void > return void > end if > end if > OpenSession(myserver) > myerror = ValentinaError() > if myerror <> 0 then > if VErrorHandler(myerror) then > myserver = void > return void > end if > end if > cnt = GetConnectionCount(myserver) > CloseSession(myserver) > myserver = void > return cnt > end You code is totally lacks ValentinaInit() call! > > > And this is what I get in the message window: > > gdebugkey = 1 > valentinadebuglevel(2,1) > * V4MD *: ValentinaSetDebugMode...done > -- "1 0" > * V4MD *: new VServer...done > * V4MD *: ValentinaError...done > -- "checkserver error 0" > * V4MD *: OpenSession...error 10093 > * V4MD *: ValentinaError...error 10093 > * V4MD *: VServer_Destroy...done And the log is confirmed that. -- Best regards, Igor Gomon ------------------------------------------------------------- e-mail: giv_ua@inbox.ru web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://listserv.macserve.net/mailman/listinfo/valentina From sunshine at public.kherson.ua Wed Jan 21 11:37:07 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Jan 21 03:44:52 2004 Subject: Access to .vdb file Message-ID: Hi Jochen, I have remember! Right now VDK_Database class has // Returns the description file with corresponded number // for this database. If it doesn't exists on disk, // creates it if inAutoCreate // This file is stored in the "database.vdb" file FBL_EXP VDK_DescriptionFile* GetDescriptionFile( ushort inNumber, bool inAutoCreate = true ); And exists class VDK_DescriptionFile. This way I have add BEFORE have made system tables. This way allow you store YOUR info into vdb file. You can have A LOTS OF different internal files inside of vdb file!!! They will differ by Number. VDK_DescriptionFile is very easy for use and is just stream. Check it. I use this in VAPP somewhere to store some VAPP info. So check sources of VAPP. And btw, use other numbers than VAPP. Again, this is not access to system tables, But can work for many your cases. May be even better. Note, you need write all, then read all from stream. For example you can use this to do that predefined QUERIES Layouts last user queries (stored in DB, but not in prefs) reports ... I don't know if there is sense repeat this stream feature in 2.0... Just for flexibility may be. But may be you will find this feature more easy for YOUR tasks that system tables, where you will need split e.g. Layout info into many records, then combine them...of course it possible to store Layout as the whole thing into BLOB. So check all this and let me know what you think? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From erichg at mcmm.com Wed Jan 21 12:11:03 2004 From: erichg at mcmm.com (Erich Geiersberger) Date: Wed Jan 21 05:11:15 2004 Subject: [VServer] NT4 error 10093 In-Reply-To: <001501c3dff5$c64f1940$b31226c3@giv> References: <001501c3dff5$c64f1940$b31226c3@giv> Message-ID: > > I have VServer running on a XP machine and try to connect from clients. > > No problems from XP or 2000 machines, but from an NT4 workstation I > > had difficulties. > > > > I can create a Vserver instance, it will report the port number, but > > on opensession() I get an error 10093 (seems to be: a DNS lookup > > failed) >This is the 10093 error description from MSDN: > Successful WSAStartup not yet performed. > Either the application has not called WSAStartup or > WSAStartup failed. > >So, the real question is: did you call ValentinaInit() >before using VServer Xtra? Oops, at this point I really forgot that to call it. But that's does not fix the problem on NT4. The following code works: - 100% in authoring mode on NT4 - 100% on Win 2000 - only about 10% of all tries from an NT4 projector on getDBregistration global guser, gpw, gIsAdmin, ghostname, gVErr DBOpenV(ghostname, "master", myAdmin, myPassword) if VErrorHandler(gVErr) then close_Vdb gVErr = 0 alert "cancel at getdb.." return -1 end if gcursor_master = void mySQLString = "Select * from user WHERE name ='" & guser & "'" gcursor_master = new ( xtra "VCursor", GetRef(gMyDataBase), mySQLstring, kServer, kReadWrite, kRandom) myerror = ValentinaError() if myerror <> 0 then if VErrorHandler(myerror) then close_Vdb gcursor_master = void return -1 end if end if cnt = getrecordcount(gcursor_master) alert "mastercursor" && string(gcursor_master) alert "cnt = " && string(cnt) registered = 1 if cnt > 0 then mypw = getfield(gcursor_master, "password") alert "password = " && mypw if mypw = gpw then registered = 1 else alert("Falsches Passwort") registered = -1 end if else registered = 0 end if gcursor_master = void close_Vdb alert "getDBregistration" && string(registered) return registered end On NT4, this code will produce the following alerts: - mastercursor - cnt = - getDBregistration 0 and *sometimes* (in about 1 of 10 tries): - mastercursor - cnt = 1 - password = tom - getDBregistration 1 On win 2000 it always works. It also works 100% in authoring mode on NT4. The problem only occurs in the NT4 projector. Erich From fb at memedia.de Wed Jan 21 12:19:05 2004 From: fb at memedia.de (Florian Bogeschdorfer) Date: Wed Jan 21 05:19:18 2004 Subject: AW: [VServer] NT4 error 10093 In-Reply-To: Message-ID: The way you describe it might it be rather a Director problem? Since the xtra for authoring and runtime is the same. Which version of Director are you working with? Florian > -----Urspr?ngliche Nachricht----- > Von: valentina-bounces@lists.macserve.net > [mailto:valentina-bounces@lists.macserve.net] Im Auftrag von > Erich Geiersberger > Gesendet: Mittwoch, 21. Januar 2004 12:11 > An: Valentina Developers > Betreff: Re: [VServer] NT4 error 10093 > > > > I have VServer running on a XP machine and try to > connect from clients. > > > No problems from XP or 2000 machines, but from an NT4 > workstation I > > > had difficulties. > > > > > > I can create a Vserver instance, it will report the port number, > >but > > > on opensession() I get an error 10093 (seems to be: a DNS lookup > > > failed) > >This is the 10093 error description from MSDN: > > Successful WSAStartup not yet performed. > > Either the application has not called WSAStartup or > > WSAStartup failed. > > > >So, the real question is: did you call ValentinaInit() before using > >VServer Xtra? > > > Oops, at this point I really forgot that to call it. > But that's does not fix the problem on NT4. > > The following code works: > - 100% in authoring mode on NT4 > - 100% on Win 2000 > - only about 10% of all tries from an NT4 projector > > on getDBregistration > global guser, gpw, gIsAdmin, ghostname, gVErr > DBOpenV(ghostname, "master", myAdmin, myPassword) > > if VErrorHandler(gVErr) then > close_Vdb > gVErr = 0 > alert "cancel at getdb.." > return -1 > end if > > gcursor_master = void > mySQLString = "Select * from user WHERE name ='" & guser & "'" > gcursor_master = new ( xtra "VCursor", > GetRef(gMyDataBase), mySQLstring, kServer, kReadWrite, kRandom) > myerror = ValentinaError() > if myerror <> 0 then > if VErrorHandler(myerror) then > close_Vdb > gcursor_master = void > return -1 > end if > end if > > cnt = getrecordcount(gcursor_master) > > alert "mastercursor" && string(gcursor_master) > alert "cnt = " && string(cnt) > > registered = 1 > if cnt > 0 then > mypw = getfield(gcursor_master, "password") > alert "password = " && mypw > if mypw = gpw then > registered = 1 > else > alert("Falsches Passwort") > registered = -1 > end if > else > registered = 0 > end if > gcursor_master = void > close_Vdb > alert "getDBregistration" && string(registered) > return registered > end > > On NT4, this code will produce the following alerts: > - mastercursor > - cnt = > - getDBregistration 0 > > and *sometimes* (in about 1 of 10 tries): > - mastercursor > - cnt = 1 > - password = tom > - getDBregistration 1 > > On win 2000 it always works. > It also works 100% in authoring mode on NT4. > The problem only occurs in the NT4 projector. > > Erich > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina From erichg at mcmm.com Wed Jan 21 12:26:30 2004 From: erichg at mcmm.com (Erich Geiersberger) Date: Wed Jan 21 05:26:45 2004 Subject: AW: [VServer] NT4 error 10093 In-Reply-To: References: Message-ID: >The way you describe it might it be rather a Director problem? > >Since the xtra for authoring and runtime is the same. Which version of >Director are you working with? > >Florian 8.5.1 From fb at memedia.de Wed Jan 21 13:09:51 2004 From: fb at memedia.de (Florian Bogeschdorfer) Date: Wed Jan 21 06:09:58 2004 Subject: AW: AW: [VServer] NT4 error 10093 In-Reply-To: Message-ID: Do you have an older version of Director to test? I am not sure if all xtras are still NT-valid. By the way: I remember having problems too with NT, D8.5.1 and Vserver but I did not investigate, just put NT off my compatibility list. Florian > -----Urspr?ngliche Nachricht----- > Von: valentina-bounces@lists.macserve.net > [mailto:valentina-bounces@lists.macserve.net] Im Auftrag von > Erich Geiersberger > Gesendet: Mittwoch, 21. Januar 2004 12:27 > An: Valentina Developers > Betreff: Re: AW: [VServer] NT4 error 10093 > > >The way you describe it might it be rather a Director problem? > > > >Since the xtra for authoring and runtime is the same. Which > version of > >Director are you working with? > > > >Florian > > 8.5.1 > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina From fvanlerberghe at freegates.be Wed Jan 21 14:00:39 2004 From: fvanlerberghe at freegates.be (Francois Van Lerberghe) Date: Wed Jan 21 07:00:34 2004 Subject: What is error -61? In-Reply-To: Message-ID: le 21/01/04 8:58, Ruslan Zasukhin a ?crit?: >> I'm not sure to understand completely what's happening. >> If MacOS X allow multiple writer and don't provide exclusive lock (as >> described in the TN), why can we get an error -61 ? > > In MacOS X we will not get it. > > You an easy reproduce. > > Make COPY of VAPP or your projector. > Run both copies, from each copy open some db. > > They open it. > > Real Problem come when both apps will try write something into the same db. Mmm, as soon as I write with one copy of VApp, I get the -61 error. Fran?ois Van Lerberghe Rue Thier Monty, 15 A 4570 Marchin Belgique From forgete at cafederic.com Wed Jan 21 10:05:12 2004 From: forgete at cafederic.com (Eric Forget) Date: Wed Jan 21 09:05:51 2004 Subject: [SQL] Related table question [Workaroung] In-Reply-To: Message-ID: Hi Ruslan, I've found a workaround. In the main table, I create a field of type Text "KeywordNames". It is formatted like this "\001keyword1\001\001eyword2\001". I've used the character '\001' since it is not printable. The drawbacks are that search maybe a bit slower and it increases the size of the database. However, it would make my life a lot easier... Even if I do not use your solutions, I've learned a few SQL tricks with this process that I may use in the future for other stuffs. Thank you for your help... Eric ___________________________________________________________________ Eric Forget Cafederic ForgetE@cafederic.com Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684> From sunshine at public.kherson.ua Wed Jan 21 17:16:39 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Jan 21 09:16:33 2004 Subject: [SQL] Related table question [Workaroung] In-Reply-To: Message-ID: on 1/21/04 5:05 PM, Eric Forget at forgete@cafederic.com wrote: > Hi Ruslan, > > I've found a workaround. In the main table, I create a field of type Text > "KeywordNames". It is formatted like this "\001keyword1\001\001eyword2\001". > I've used the character '\001' since it is not printable. > > The drawbacks are that search maybe a bit slower and it increases the size > of the database. However, it would make my life a lot easier... > > Even if I do not use your solutions, I've learned a few SQL tricks with this > process that I may use in the future for other stuffs. > > Thank you for your help... Hi Eric, Okay, Then may be you need just use TEXT/VarChar field An storey keywords separated by space And apply Index by words? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From forgete at cafederic.com Wed Jan 21 13:09:53 2004 From: forgete at cafederic.com (Eric Forget) Date: Wed Jan 21 12:14:55 2004 Subject: [SQL] Related table question [Workaroung] In-Reply-To: Message-ID: > Then may be you need just use TEXT/VarChar field > An storey keywords separated by space > And apply Index by words? It is using TEXT field. However, how do you separate words? I means the user may tape spaces in the keywords. So I will need escape all the characters you consider to be word separator, but acceptable for my application. Another way, is there a callback for that in Valentina? Eric ___________________________________________________________________ Eric Forget Cafederic ForgetE@cafederic.com Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684> From xyzabc1010 at yahoo.com Wed Jan 21 11:05:04 2004 From: xyzabc1010 at yahoo.com (X Y) Date: Wed Jan 21 13:05:09 2004 Subject: How do you handle crashes if you have a .lck file? In-Reply-To: Message-ID: <20040121190504.93063.qmail@web21107.mail.yahoo.com> Hi All, So I implemented the lck solution to the OSX problem? But my question is lets say you crash and the lock file still exists? did anyone find a solution to getting an expiration for the lck file. You really cant depend on your client machines having the correct date right? -- h __________________________________ Do you Yahoo!? Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus From forgete at cafederic.com Wed Jan 21 14:37:57 2004 From: forgete at cafederic.com (Eric Forget) Date: Wed Jan 21 13:38:40 2004 Subject: How do you handle crashes if you have a .lck file? In-Reply-To: <20040121190504.93063.qmail@web21107.mail.yahoo.com> Message-ID: > So I implemented the lck solution to the OSX problem? > But my question is lets say you crash and the lock > file still exists? did anyone find a solution to > getting an expiration for the lck file. You really > cant depend on your client machines having the correct > date right? 1) Just write your process id in it. When you reopen check to see if the process id is not yours that it is still alive. 2) Maybe writing also the delay since login (or boot) could be useful. Just in case the user crash the application, stop working, shut down the Mac, later come back, by a bad random pick, the Finder or any other application opened before your application has the same process id than you had during the crash. 3) Finally, if the DB is to be opened by different machine/OS, you must also write something unique for the machine, like the Ethernet card id. But then, you will have fun to figure out if the process is still running on the other machine. Maybe we should use rendezvous to find such case. I would rather prefer that kind of stuff being written at the Valentina kernel level. Because, whatever we will write, we won't prevent other Valentina compatible application to create problems. We should probably making trick to be prevent Valentina application to open the DB, like encryption on the structure... Eric ___________________________________________________________________ Eric Forget Cafederic ForgetE@cafederic.com Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684> From sunshine at public.kherson.ua Wed Jan 21 22:26:13 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Jan 21 14:31:25 2004 Subject: [SQL] Related table question [Workaroung] In-Reply-To: Message-ID: on 1/21/04 8:09 PM, Eric Forget at forgete@cafederic.com wrote: >> Then may be you need just use TEXT/VarChar field >> An storey keywords separated by space >> And apply Index by words? > > It is using TEXT field. However, how do you separate words? I means the user > may tape spaces in the keywords. So I will need escape all the characters > you consider to be word separator, but acceptable for my application. I think I use ischar() function, and skip all other > Another way, is there a callback for that in Valentina? no -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From yeomans at desuetude.com Wed Jan 21 16:59:17 2004 From: yeomans at desuetude.com (Charles Yeomans) Date: Wed Jan 21 15:59:26 2004 Subject: How do you handle crashes if you have a .lck file? In-Reply-To: <20040121190504.93063.qmail@web21107.mail.yahoo.com> References: <20040121190504.93063.qmail@web21107.mail.yahoo.com> Message-ID: <0F2A061E-4C5D-11D8-B3CD-003065BB0634@desuetude.com> On Jan 21, 2004, at 2:05 PM, X Y wrote: > Hi All, > So I implemented the lck solution to the OSX problem? > But my question is lets say you crash and the lock > file still exists? did anyone find a solution to > getting an expiration for the lck file. You really > cant depend on your client machines having the correct > date right? One way is to tell the user to delete the lock file after a crash. Charles Yeomans From lbutler at on.pelmorex.com Wed Jan 21 17:12:20 2004 From: lbutler at on.pelmorex.com (Lloyd Butler) Date: Wed Jan 21 16:12:40 2004 Subject: [VAPP] working with Valentina via Perl Message-ID: Ruslan, I have installed and configured Mac::Glue for Perl under OS X and I have generated the Valentina glue file, which will give Perl access to the Applescript guts of Valentina. I have a routine that queries the database and returns a cursor and then formats the result to text. Here is the main part of the code. # Let's create a database object to work with $valObj = Mac::Glue->new('Valentina_Carbon') ; $theDB = $valObj->obj(file => "$dbPath") ; $theDB = $valObj->open($theDB) ; if (! $theDB) { return "Failed to open $dbPath : $MacError" ; } else { $theCursor = $valObj->sql($theDB,select=>$theCommand) ; $recCount = $valObj->count($theCursor,each=>"record") ; $fieldCount = $valObj->count($theCursor,each=>"field") ; @theData = $valObj->format($theCursor,using => $theFormat ,from => 1,to => $recCount) ; $valObj->delete($theCursor) ; } What I would like to do is figure out how to get at various properties of the cursor, like field names. To do it in AS, it would be set aField to name of field 1 of record 1 of theCursor Any ideas how to do this using the model in Perl? I am still trying to get use to this sort of object model. I orignally thought something along the lines of $fieldName = $theCursor->record[0]->field[0]->name ; Thanks, Lloyd Butler Product and System Development Supervisor TWN Commercial Services From sunshine at public.kherson.ua Thu Jan 22 00:18:54 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Jan 21 16:18:44 2004 Subject: [VAPP] working with Valentina via Perl In-Reply-To: Message-ID: on 1/22/04 12:12 AM, Lloyd Butler at lbutler@on.pelmorex.com wrote: > Ruslan, > > I have installed and configured Mac::Glue for Perl under OS X and I have > generated the Valentina glue file, which will give Perl access to the > Applescript guts of Valentina. > > I have a routine that queries the database and returns a cursor and then > formats the result to text. > Here is the main part of the code. > > # Let's create a database object to work with > $valObj = Mac::Glue->new('Valentina_Carbon') ; > > $theDB = $valObj->obj(file => "$dbPath") ; > $theDB = $valObj->open($theDB) ; > > if (! $theDB) { > return "Failed to open $dbPath : $MacError" ; > } > else { > $theCursor = $valObj->sql($theDB,select=>$theCommand) ; > $recCount = $valObj->count($theCursor,each=>"record") ; > $fieldCount = $valObj->count($theCursor,each=>"field") ; > > @theData = $valObj->format($theCursor,using => $theFormat ,from => > 1,to => $recCount) ; > > $valObj->delete($theCursor) ; > } > What I would like to do is figure out how to get at various properties of > the cursor, like field names. > > To do it in AS, it would be > > set aField to name of field 1 of record 1 of theCursor > > Any ideas how to do this using the model in Perl? I am still trying to get > use to this sort of object model. Lloyd, I am sorry, I am not helper here. I don't know Perl absolutly. > I orignally thought something along the lines of > > $fieldName = $theCursor->record[0]->field[0]->name ; -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From erichg at mcmm.com Thu Jan 22 01:29:20 2004 From: erichg at mcmm.com (Erich Geiersberger) Date: Wed Jan 21 18:36:48 2004 Subject: AW: AW: [VServer] NT4 error 10093 In-Reply-To: References: Message-ID: >Do you have an older version of Director to test? > >I am not sure if all xtras are still NT-valid. > >By the way: I remember having problems too with NT, D8.5.1 and Vserver but I >did not investigate, just put NT off my compatibility list. > >Florian Dropping NT4 support is not a real option. There are still too many of them around. Igor, any idea why the master database cursor does not work reliably on NT4? Erich From forgete at cafederic.com Wed Jan 21 20:05:48 2004 From: forgete at cafederic.com (Eric Forget) Date: Wed Jan 21 19:07:00 2004 Subject: [VSDK] File extensions problems! Message-ID: Hi Ruslan, When using file path to create/open the database on Mac OS X, we must set the extensions that way: gFBL_DescriptionExt // C version for the structure file gFBL_MainDataFileExtStr // Pascal version for the 3 others!!! gFBL_BlobsDataFileExtStr gFBL_TmpDataFileExtStr It took me some time to figuring out what was going on. I can imagine the error you've made... ;-) I've been able to make it work, but wanted to let you know about the problem. Eric ___________________________________________________________________ Eric Forget Cafederic ForgetE@cafederic.com Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684> From forgete at cafederic.com Wed Jan 21 20:09:48 2004 From: forgete at cafederic.com (Eric Forget) Date: Wed Jan 21 19:10:20 2004 Subject: [VSDK] Index path In-Reply-To: Message-ID: > on 12/3/03 9:22 AM, Eric Forget at forgete@cafederic.com wrote: > > Hi Eric, > >> Would you mind to add a member function to VDK_DataBase so we can set a >> different path for the index (.ind) file? It may looks like this: >> >> FBL_EXP virtual void SetIndexPath(const char* inIndexFullPath); >> >> The problem is this. I will ship my application with a built database w/o >> the index file, to save download. However, once installed, it is not >> guaranteed that the user of my application will have the write permission to >> the application package. So, I see 2 solutions: >> >> 1) Write a tool that I call with the authentication service just to create >> the index. >> >> 2) I place the index somewhere I'm sure every user have the write permission >> (i.e. Inside the Home tree). >> >> I prefer 2), since I think also it is better to not alter the application >> package once on a user machine. Also, the user may need to ask another user >> to come an authenticate him/herself just for that. >> >> For you, it should not be too difficult, since it is only at the opening of >> the index file it makes a difference? > > I will try. Have you tried? ;-) Eric ___________________________________________________________________ Eric Forget Cafederic ForgetE@cafederic.com Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684> From sunshine at public.kherson.ua Thu Jan 22 08:45:02 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jan 22 00:45:14 2004 Subject: AW: AW: [VServer] NT4 error 10093 In-Reply-To: Message-ID: on 1/22/04 2:29 AM, Erich Geiersberger at erichg@mcmm.com wrote: >> Do you have an older version of Director to test? >> >> I am not sure if all xtras are still NT-valid. >> >> By the way: I remember having problems too with NT, D8.5.1 and Vserver but I >> did not investigate, just put NT off my compatibility list. >> >> Florian > > Dropping NT4 support is not a real option. > There are still too many of them around. > > Igor, any idea why the master database cursor does not work reliably on NT4? Erich, Unfortunately we have no NT4 installation here. Igor will try prepare for you special DEBUG build of V4MD_Client. Then you will run it and and return us info. I think this bug will take several days. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Thu Jan 22 08:51:53 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jan 22 00:53:03 2004 Subject: [VSDK] File extensions problems! In-Reply-To: Message-ID: on 1/22/04 3:05 AM, Eric Forget at forgete@cafederic.com wrote: > Hi Ruslan, > > When using file path to create/open the database on Mac OS X, we must set > the extensions that way: > > gFBL_DescriptionExt // C version for the structure file > > gFBL_MainDataFileExtStr // Pascal version for the 3 others!!! > gFBL_BlobsDataFileExtStr > gFBL_TmpDataFileExtStr > > It took me some time to figuring out what was going on. I can imagine the > error you've made... ;-) I've been able to make it work, but wanted to let > you know about the problem. Hi Eric, Wait a little. In the file FBL_Globals.cpp I have #pragma mark === COMMON ==== char gFBL_DescriptionExt[32] = ".vdb"; char gFBL_MainDataFileExt[32] = ".dat"; char gFBL_TmpDataFileExt[32] = ".ind"; char gFBL_BlobsDataFileExt[32] = ".blb"; #pragma mark === MacOS ==== #ifdef FBL_MAC uchar gFBL_DescriptionExtStr[32] = "\p.vdb"; uchar gFBL_MainDataFileExtStr[32] = "\p.dat"; uchar gFBL_TmpDataFileExtStr[32] = "\p.ind"; uchar gFBL_BlobsDataFileExtStr[32] = "\p.blb"; #endif As you see xxxxExt is the C string xxxxExtStr is the Pascal string You should provide the full set. For example in V4RB I have next code void ValentinaSetExtensions( REALstring Desc, REALstring Dat, REALstring Blb, REALstring Ind ) { V4RB_FUNC_START( "ValentinaSetExtensions" ); strcpy( gFBL_DescriptionExt + 1 , Desc->CString() ); strcpy( gFBL_MainDataFileExt + 1 , Dat->CString() ); strcpy( gFBL_BlobsDataFileExt + 1 , Blb->CString() ); strcpy( gFBL_TmpDataFileExt + 1 , Ind->CString() ); #ifdef FBL_MAC FBL_c2pstrcpy( gFBL_DescriptionExt, gFBL_DescriptionExtStr ); FBL_c2pstrcpy( gFBL_MainDataFileExt, gFBL_MainDataFileExtStr ); FBL_c2pstrcpy( gFBL_BlobsDataFileExt, gFBL_BlobsDataFileExtStr ); FBL_c2pstrcpy( gFBL_TmpDataFileExt, gFBL_TmpDataFileExtStr ); #endif V4RB_FUNC_DONE; } -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Thu Jan 22 08:52:39 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jan 22 00:53:12 2004 Subject: [VSDK] Index path In-Reply-To: Message-ID: on 1/22/04 3:09 AM, Eric Forget at forgete@cafederic.com wrote: >> Hi Eric, >> >>> Would you mind to add a member function to VDK_DataBase so we can set a >>> different path for the index (.ind) file? It may looks like this: >>> >>> FBL_EXP virtual void SetIndexPath(const char* inIndexFullPath); >>> >>> The problem is this. I will ship my application with a built database w/o >>> the index file, to save download. However, once installed, it is not >>> guaranteed that the user of my application will have the write permission to >>> the application package. So, I see 2 solutions: >>> >>> 1) Write a tool that I call with the authentication service just to create >>> the index. >>> >>> 2) I place the index somewhere I'm sure every user have the write permission >>> (i.e. Inside the Home tree). >>> >>> I prefer 2), since I think also it is better to not alter the application >>> package once on a user machine. Also, the user may need to ask another user >>> to come an authenticate him/herself just for that. >>> >>> For you, it should not be too difficult, since it is only at the opening of >>> the index file it makes a difference? >> >> I will try. > > Have you tried? ;-) Sorry no time, but your letter in my IN box -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From forgete at cafederic.com Thu Jan 22 02:04:23 2004 From: forgete at cafederic.com (Eric Forget) Date: Thu Jan 22 01:04:29 2004 Subject: [VSDK] File extensions problems! In-Reply-To: Message-ID: > As you see xxxxExt is the C string > xxxxExtStr is the Pascal string > > > You should provide the full set. I understand that. Read again my email. You have a bug on Mac OS X when using file path, as opposed to FSSpec. Cheers, ?ric ___________________________________________________________________ Eric Forget Cafederic ForgetE@cafederic.com Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684> From sunshine at public.kherson.ua Thu Jan 22 09:19:58 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jan 22 01:19:58 2004 Subject: [VSDK] File extensions problems! In-Reply-To: Message-ID: on 1/22/04 9:04 AM, Eric Forget at forgete@cafederic.com wrote: >> As you see xxxxExt is the C string >> xxxxExtStr is the Pascal string >> >> >> You should provide the full set. > > I understand that. Read again my email. You have a bug on Mac OS X when > using file path, as opposed to FSSpec. Hmm, I doubt, because V4MD developers use only Full Path to Create/Open dbs -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From forgete at cafederic.com Thu Jan 22 02:26:38 2004 From: forgete at cafederic.com (Eric Forget) Date: Thu Jan 22 01:26:44 2004 Subject: [VSDK] File extensions problems! In-Reply-To: Message-ID: > I doubt, because V4MD developers use only Full Path to Create/Open dbs Try it. It took me 2 hours to make it work. The only working path was the way I wrote in the other email... ?ric ___________________________________________________________________ Eric Forget Cafederic ForgetE@cafederic.com Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684> From sunshine at public.kherson.ua Thu Jan 22 09:37:36 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jan 22 01:37:54 2004 Subject: [VSDK] File extensions problems! In-Reply-To: Message-ID: on 1/22/04 9:26 AM, Eric Forget at forgete@cafederic.com wrote: >> I doubt, because V4MD developers use only Full Path to Create/Open dbs > > Try it. It took me 2 hours to make it work. The only working path was the > way I wrote in the other email... ----------- > When using file path to create/open the database on Mac OS X, we must set > the extensions that way: > > gFBL_DescriptionExt // C version for the structure file > > gFBL_MainDataFileExtStr // Pascal version for the 3 others!!! > gFBL_BlobsDataFileExtStr > gFBL_TmpDataFileExtStr Eric, I cannot catch. 1) you have set own file extensions. 2) you say above correct things. You must do // C version for the structure file gFBL_DescriptionExt = ".myvdb" gFBL_MainDataFileExt = ".mydata"; gFBL_BlobsDataFileExt = ".myblob"; gFBL_TmpDataFileExt = ".myind"; // Pascal version for the 3 others!!! gFBL_DescriptionExtStr = "\p.myvdb"; gFBL_MainDataFileExtStr = "\p.mydata"; gFBL_BlobsDataFileExtStr = "\p.myblob"; gFBL_TmpDataFileExtStr = "\p.myind"; Above you say the same as far as I see. Where problems ??? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From forgete at cafederic.com Thu Jan 22 02:52:59 2004 From: forgete at cafederic.com (Eric Forget) Date: Thu Jan 22 01:53:06 2004 Subject: [VSDK] File extensions problems! In-Reply-To: Message-ID: > // C version for the structure file > gFBL_DescriptionExt = ".myvdb" > gFBL_MainDataFileExt = ".mydata"; > gFBL_BlobsDataFileExt = ".myblob"; > gFBL_TmpDataFileExt = ".myind"; > > > // Pascal version for the 3 others!!! > gFBL_DescriptionExtStr = "\p.myvdb"; > gFBL_MainDataFileExtStr = "\p.mydata"; > gFBL_BlobsDataFileExtStr = "\p.myblob"; > gFBL_TmpDataFileExtStr = "\p.myind"; > > > Above you say the same as far as I see. > Where problems ??? To make it work, the only combination is: // C version for the structure file gFBL_DescriptionExt = ".myvdb" // Pascal version for the 3 others!!! gFBL_MainDataFileExtStr = "\p.mydata"; gFBL_BlobsDataFileExtStr = "\p.myblob"; gFBL_TmpDataFileExtStr = "\p.myind"; ?ric ___________________________________________________________________ Eric Forget Cafederic ForgetE@cafederic.com Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684> From sunshine at public.kherson.ua Thu Jan 22 10:14:09 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jan 22 02:14:53 2004 Subject: [VSDK] File extensions problems! In-Reply-To: Message-ID: on 1/22/04 9:52 AM, Eric Forget at forgete@cafederic.com wrote: >> // C version for the structure file >> gFBL_DescriptionExt = ".myvdb" >> gFBL_MainDataFileExt = ".mydata"; >> gFBL_BlobsDataFileExt = ".myblob"; >> gFBL_TmpDataFileExt = ".myind"; >> >> >> // Pascal version for the 3 others!!! >> gFBL_DescriptionExtStr = "\p.myvdb"; >> gFBL_MainDataFileExtStr = "\p.mydata"; >> gFBL_BlobsDataFileExtStr = "\p.myblob"; >> gFBL_TmpDataFileExtStr = "\p.myind"; >> >> >> Above you say the same as far as I see. >> Where problems ??? > > To make it work, the only combination is: > > // C version for the structure file > gFBL_DescriptionExt = ".myvdb" > > // Pascal version for the 3 others!!! > gFBL_MainDataFileExtStr = "\p.mydata"; > gFBL_BlobsDataFileExtStr = "\p.myblob"; > gFBL_TmpDataFileExtStr = "\p.myind"; And what rest must be ? And what happens if they are as I have show ? I assume we talk about VSDK_PB, Macho, GCC build. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From forgete at cafederic.com Thu Jan 22 03:21:20 2004 From: forgete at cafederic.com (Eric Forget) Date: Thu Jan 22 02:21:25 2004 Subject: [VSDK] File extensions problems! In-Reply-To: Message-ID: >> // C version for the structure file >> gFBL_DescriptionExt = ".myvdb" >> >> // Pascal version for the 3 others!!! >> gFBL_MainDataFileExtStr = "\p.mydata"; >> gFBL_BlobsDataFileExtStr = "\p.myblob"; >> gFBL_TmpDataFileExtStr = "\p.myind"; > > And what rest must be ? They seems to be unused. Specifying those 4 is both minimal and enough. If you don't specify the C version for the description it won't work. If you don't specify the Pascal version for the 3 others it won't work. > And what happens if they are as I have show ? You means, assigning the 8? Nothing different. > I assume we talk about VSDK_PB, Macho, GCC build. Yep. Don't forget: using the file path version of the create/open database. ?ric ___________________________________________________________________ Eric Forget Cafederic ForgetE@cafederic.com Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684> From sunshine at public.kherson.ua Thu Jan 22 11:03:27 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jan 22 03:03:17 2004 Subject: [VSDK] File extensions problems! In-Reply-To: Message-ID: on 1/22/04 10:21 AM, Eric Forget at forgete@cafederic.com wrote: >>> // C version for the structure file >>> gFBL_DescriptionExt = ".myvdb" >>> >>> // Pascal version for the 3 others!!! >>> gFBL_MainDataFileExtStr = "\p.mydata"; >>> gFBL_BlobsDataFileExtStr = "\p.myblob"; >>> gFBL_TmpDataFileExtStr = "\p.myind"; >> >> And what rest must be ? > > They seems to be unused. Specifying those 4 is both minimal and enough. If > you don't specify the C version for the description it won't work. If you > don't specify the Pascal version for the 3 others it won't work. YES Eric, So where you see a bug? I tell the same: you MUST specify both C and Pascal strings. Okay, may be some from 8 not used, but you still should have specify them for full picture. >> And what happens if they are as I have show ? > > You means, assigning the 8? Nothing different. >> I assume we talk about VSDK_PB, Macho, GCC build. > > Yep. Don't forget: using the file path version of the create/open database. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Thu Jan 22 13:19:39 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jan 22 05:20:02 2004 Subject: [V4MD] unexpected error, In-Reply-To: Message-ID: on 1/22/04 1:02 PM, yesprasoon@rediffmail.com at yesprasoon@rediffmail.com wrote: > Name: prasoon > > Problem with: V4MD > Type of problem: wrong_result > > I've downloaded two versions of valentina(for mac os x and classic). I've put > both in XTRAS folder which i kept in the native folder of projector > itself.It's running fine for Mac Classic but on Mac os X it's giving > "unexpected error".As soon as i delete the classic xtra V4MD it's > again running fine on MacOsX, but obviously it's giving script error for mac > classic projector. > Now please tell me how to handle the situation as i've to > create same projector for both. Hmm, frankly saying even don't know. These 2 Xtra conflict with each other. I have CC on Valentina list for help. Anybody know how to resolve above task? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From forgete at cafederic.com Thu Jan 22 06:18:06 2004 From: forgete at cafederic.com (Eric Forget) Date: Thu Jan 22 05:20:28 2004 Subject: [VSDK] File extensions problems! In-Reply-To: Message-ID: > So where you see a bug? > > I tell the same: you MUST specify both C and Pascal strings. > > Okay, may be some from 8 not used, but you still should have specify them > for full picture. Ruslan, Ok I see. However, I don't see the point to have to set all the values 2 times! Fortunately, you didn't thought about support UTF8 extensions, because everybody would have to fill the information 3 times? Just look as a bad, illogical and non intuitive API design... Sorry, but it's my feeling about that one! Cheers, ?ric ___________________________________________________________________ Eric Forget Cafederic ForgetE@cafederic.com Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684> From fb at memedia.de Thu Jan 22 12:24:35 2004 From: fb at memedia.de (Florian Bogeschdorfer) Date: Thu Jan 22 05:24:43 2004 Subject: AW: [V4MD] unexpected error, In-Reply-To: Message-ID: I have CC this to Director list since I think it is a general DIR/Xtra problem Florian > -----Urspr?ngliche Nachricht----- > Von: valentina-bounces+fb=memedia.de@lists.macserve.net > [mailto:valentina-bounces+fb=memedia.de@lists.macserve.net] > Im Auftrag von Ruslan Zasukhin > Gesendet: Donnerstag, 22. Januar 2004 12:20 > An: yesprasoon@rediffmail.com; valentina@lists.macserve.net > Betreff: Re: [V4MD] unexpected error, > > on 1/22/04 1:02 PM, yesprasoon@rediffmail.com at > yesprasoon@rediffmail.com > wrote: > > > Name: prasoon > > > > Problem with: V4MD > > Type of problem: wrong_result > > > > I've downloaded two versions of valentina(for mac os x and > classic). > > I've put both in XTRAS folder which i kept in the native folder of > > projector itself.It's running fine for Mac Classic but on Mac os X > > it's giving "unexpected error".As soon as i delete > the classic > > xtra V4MD it's again running fine on MacOsX, but obviously > it's giving > > script error for mac classic projector. > > > > Now please tell me how to handle the situation as i've to > create same > > projector for both. > > Hmm, frankly saying even don't know. > These 2 Xtra conflict with each other. > > I have CC on Valentina list for help. > > Anybody know how to resolve above task? > > > > -- > Best regards, > Ruslan Zasukhin [ I feel the need...the need for speed ] > ------------------------------------------------------------- > e-mail: ruslan@paradigmasoft.com > web: http://www.paradigmasoft.com > > To subscribe to the Valentina mail list go to: > http://lists.macserve.net/mailman/listinfo/valentina > ------------------------------------------------------------- > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina From sunshine at public.kherson.ua Thu Jan 22 13:27:34 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jan 22 05:27:28 2004 Subject: [VSDK] File extensions problems! In-Reply-To: Message-ID: on 1/22/04 1:18 PM, Eric Forget at forgete@cafederic.com wrote: >> So where you see a bug? >> >> I tell the same: you MUST specify both C and Pascal strings. >> >> Okay, may be some from 8 not used, but you still should have specify them >> for full picture. > > Ruslan, > > Ok I see. However, I don't see the point to have to set all the values 2 > times! Fortunately, you didn't thought about support UTF8 extensions, > because everybody would have to fill the information 3 times? > > Just look as a bad, illogical and non intuitive API design... Sorry, but > it's my feeling about that one! I agree with you, and do not remember why it was in this way. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From fb at memedia.de Thu Jan 22 15:05:30 2004 From: fb at memedia.de (Florian Bogeschdorfer) Date: Thu Jan 22 08:05:38 2004 Subject: Security question Message-ID: Hi Ruslan You once told me that if I delete a record, it will still be there physically, just somehow flagged and not appear anymore. Now with a hex editor I could still recover the data. Now I wonder what would happen if I overwrite the record with empty values or "XXX" stuff before I delete it? What yould appear in the hex editor? The empty or XXXed record? Best regards, Florian From sunshine at public.kherson.ua Thu Jan 22 16:14:13 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jan 22 08:14:03 2004 Subject: Security question In-Reply-To: Message-ID: on 1/22/04 4:05 PM, Florian Bogeschdorfer at fb@memedia.de wrote: Hi Florian, > You once told me that if I delete a record, it will still be there > physically, just somehow flagged and not appear anymore. Now with a hex > editor I could still recover the data. > > Now I wonder what would happen if I overwrite the record with empty values > or "XXX" stuff before I delete it? What yould appear in the hex editor? The > empty or XXXed record? Yes, this is away! You can do cursor->SetBlank() cursor->UpdateRecord() And only now cursor->DeleteRecord() This will put zeroes. Problem only with strings. You need Update by string with the same length. But if you can wait, better wait. In 2.0 we have flag EraseOnDelete to secure this. Problem with Update, that it also will spend time on indexing. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From fb at memedia.de Thu Jan 22 15:21:54 2004 From: fb at memedia.de (Florian Bogeschdorfer) Date: Thu Jan 22 08:22:12 2004 Subject: AW: Security question In-Reply-To: Message-ID: > > > > Now I wonder what would happen if I overwrite the record with empty > > values or "XXX" stuff before I delete it? What yould appear > in the hex > > editor? The empty or XXXed record? > > Yes, this is away! > > You can do > > cursor->SetBlank() > cursor->UpdateRecord() > > And only now > cursor->DeleteRecord() > > This will put zeroes. > Problem only with strings. > You need Update by string with the same length. Or the max length of the field right? So I could use setBlank() and then add the string fields filled with spaces? > > But if you can wait, better wait. > In 2.0 we have flag EraseOnDelete to secure this. > > Problem with Update, that it also will spend time on indexing. > In this case time is not a matter. I wonder about 2.0. Ruslan, what changes will it bring? Will we need new coding for our old projects? How can we update existing servers (embedded). It is supposed to be released the next few weeks, but that is a beta version right? Florian From sunshine at public.kherson.ua Thu Jan 22 16:35:20 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jan 22 08:35:15 2004 Subject: AW: Security question In-Reply-To: Message-ID: on 1/22/04 4:21 PM, Florian Bogeschdorfer at fb@memedia.de wrote: >>> Now I wonder what would happen if I overwrite the record with empty >>> values or "XXX" stuff before I delete it? What yould appear >> in the hex >>> editor? The empty or XXXed record? >> >> Yes, this is away! >> >> You can do >> >> cursor->SetBlank() >> cursor->UpdateRecord() >> >> And only now >> cursor->DeleteRecord() >> >> This will put zeroes. >> Problem only with strings. >> You need Update by string with the same length. > > Or the max length of the field right? Yes. But better the same legnth > So I could use setBlank() and then add the string fields filled with spaces? Yes. You need use spaces. >> But if you can wait, better wait. >> In 2.0 we have flag EraseOnDelete to secure this. >> >> Problem with Update, that it also will spend time on indexing. >> > In this case time is not a matter. > > I wonder about 2.0. Ruslan, what changes will it bring? Will we need new > coding for our old projects? How can we update existing servers (embedded). > It is supposed to be released the next few weeks, but that is a beta version > right? Of course this will be just beta. Then few weeks on beta testing. Polishing. Big changes are only in C++ API. And even here we hope to provide nice wrapper that will allow mainly use old code. For rest (RB, Director, ...) old API will be saved of course. And probably extended. May be not in 2.0, but in 2.1, 2.2 -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From onno at concrete.be Thu Jan 22 17:28:58 2004 From: onno at concrete.be (onno baudouin) Date: Thu Jan 22 10:31:03 2004 Subject: [Valentina Newbie] Some questions before purchase. Message-ID: <008901c3e104$d65fb0a0$c200a8c0@CONCRETEP4HT> Hi We like to include Valentina for one of our products but i have a few questions, that after looking for an hour through the lists haven't been able to get 'confirmed' Works for MX (not 2004, but how will support be on that?) on Win 2000+ and OS-X (classic not important).? Doesn't support unicode i know but i'd like to know issues with stuff like EURO symbol etc. Languages will be western european. Product is CD and comes with premade Database. however ideally this would have to be 'updatable' when new stuff arrives. I can see just one simple option: download newly made file to hd and start using that. Is there a way to just download the updates and somehow 'quickly' combine the two so no 'dual' query's would have to be run? MySQL->Valentina possibilities? We will use basic stuff mostly, nothing fancy. Perhaps just even 1 table but there will be many and updates would be ideal. Thx in advance, Onno Baudouin From fb at memedia.de Thu Jan 22 17:38:16 2004 From: fb at memedia.de (Florian Bogeschdorfer) Date: Thu Jan 22 10:38:24 2004 Subject: AW: [Valentina Newbie] Some questions before purchase. In-Reply-To: <008901c3e104$d65fb0a0$c200a8c0@CONCRETEP4HT> Message-ID: > -----Urspr?ngliche Nachricht----- > Von: valentina-bounces@lists.macserve.net > [mailto:valentina-bounces@lists.macserve.net] Im Auftrag von > onno baudouin > Gesendet: Donnerstag, 22. Januar 2004 17:29 > An: valentina@lists.macserve.net > Betreff: [Valentina Newbie] Some questions before purchase. > > Hi > > We like to include Valentina for one of our products but i > have a few questions, that after looking for an hour through > the lists haven't been able to get 'confirmed' > > Works for MX (not 2004, but how will support be on that?) on > Win 2000+ and OS-X (classic not important).? Works with MX. 2004 should not be a problem. However I am sure Ruslan would update the xtra. > > Doesn't support unicode i know but i'd like to know issues > with stuff like EURO symbol etc. Languages will be western european. I don't know. Ruslan? > > Product is CD and comes with premade Database. however > ideally this would have to be 'updatable' when new stuff > arrives. I can see just one simple > option: download newly made file to hd and start using that. > Is there a way to just download the updates and somehow > 'quickly' combine the two so no 'dual' query's would have to be run? Of course. There are many ways how you can do this from Director. You can even add tables and fields afterwards without having to make a new DB. Florian > > MySQL->Valentina possibilities? > > We will use basic stuff mostly, nothing fancy. Perhaps just > even 1 table but there will be many and updates would be ideal. > > Thx in advance, > > Onno Baudouin > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina From sunshine at public.kherson.ua Thu Jan 22 18:40:15 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jan 22 10:40:04 2004 Subject: [Valentina Newbie] Some questions before purchase. In-Reply-To: <008901c3e104$d65fb0a0$c200a8c0@CONCRETEP4HT> Message-ID: on 1/22/04 6:28 PM, onno baudouin at onno@concrete.be wrote: Hi Onno, > We like to include Valentina for one of our products but i have a few > questions, that after looking for an hour through the lists haven't been > able to get 'confirmed' > > Works for MX (not 2004, but how will support be on that?) on Win 2000+ and > OS-X (classic not important).? Yes to all. I have not read that Director 2004 will not be compatible with existed Xrtas, correct? So must works with no changes. > Doesn't support unicode i know but i'd like to know issues with stuff like > EURO symbol etc. Languages will be western european. Symbol itself is font characteristic. Western languages works. May be only minor glitches... > Product is CD and comes with premade Database. No problems. > however ideally this would > have to be 'updatable' when new stuff arrives. I can see just one simple > option: download newly made file to hd and start using that. Is there a way > to just download the updates and somehow 'quickly' combine the two so no > 'dual' query's would have to be run? First db also will be moved from CD to HDD? > MySQL->Valentina possibilities? You mean converter? 1) via ODBC 2) via TEXT export/import of Tables. > We will use basic stuff mostly, nothing fancy. Perhaps just even 1 table but > there will be many and updates would be ideal. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From martin.kloss at gmx.de Thu Jan 22 17:48:47 2004 From: martin.kloss at gmx.de (Martin Kloss) Date: Thu Jan 22 10:49:05 2004 Subject: [Valentina Newbie] Some questions before purchase. In-Reply-To: References: <008901c3e104$d65fb0a0$c200a8c0@CONCRETEP4HT> Message-ID: <6.0.1.1.2.20040122174656.01d93340@pop.gmx.de> At 17:40 22.01.2004, you wrote: > > Works for MX (not 2004, but how will support be on that?) on Win 2000+ and > > OS-X (classic not important).? > >Yes to all. >I have not read that Director 2004 will not be compatible with existed >Xrtas, correct? So must works with no changes. Hmm, there have been changes to the XDK, so I guess you'll have to check it. The inclusion of the Spider Monkey engine brings quite a lot of changes to MX2004, so I guess there could be things to do. I'm not 100% sure though, you should ask on the Xtras Dev mailing list. Martin. From sunshine at public.kherson.ua Thu Jan 22 18:52:35 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jan 22 10:52:25 2004 Subject: [Valentina Newbie] Some questions before purchase. In-Reply-To: <6.0.1.1.2.20040122174656.01d93340@pop.gmx.de> Message-ID: on 1/22/04 6:48 PM, Martin Kloss at martin.kloss@gmx.de wrote: > At 17:40 22.01.2004, you wrote: >>> Works for MX (not 2004, but how will support be on that?) on Win 2000+ and >>> OS-X (classic not important).? >> >> Yes to all. >> I have not read that Director 2004 will not be compatible with existed >> Xrtas, correct? So must works with no changes. > > Hmm, there have been changes to the XDK, so I guess you'll have > to check it. The inclusion of the Spider Monkey engine brings > quite a lot of changes to MX2004, so I guess there could be things > to do. I'm not 100% sure though, you should ask on the Xtras Dev > mailing list. Actually Xtras Dev list is very quite starting from Christmas. May be 2-3 letters. I think new XDK will have additions but not changes. So Does Director 2004 in the beta now ? How to become beta tester? Martin, where you have read that exists new XDK ? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Thu Jan 22 18:55:33 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jan 22 10:55:21 2004 Subject: Valentina Utilities In-Reply-To: Message-ID: on 1/22/04 6:50 PM, George A. Graham Jr. at gagraham@comcast.net wrote: > Ruslan, > > I have been using number constants instead of the named constants in > ValentinaUtilities. I am running on a Win2000 platform and have tried using > File|Import but that doesn't seem to recognize the file as a Module. It > shows up in the project as a paper document icon with a turned corner, and > the name in all italics. It sure would be more convenient to have the > constant naems. WHat am I doing wrong? I am sorry, I have completely not understand problem. You talk about REALbasic WIN IDE? Version? You mean that IF insert our module ValentinaUtillities Into your project then it not recognize it? Or something else? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From onno at concrete.be Thu Jan 22 19:45:22 2004 From: onno at concrete.be (onno) Date: Thu Jan 22 12:46:07 2004 Subject: [Valentina Newbie] Some questions before purchase. References: Message-ID: <005301c3e120$467b88d0$0200a8c0@hobbitdual> Thx for the swift reply. I figured that Ruslan would reply since he seems to be filling half the mailing list. Great to see the developper providing such switch replies. How he manages that with time - i can only wonder. I'll take this information to the final meeting we have tomorrow. As for Xtra's I doubt MM would make the mistake of destroying the whole support they have built up - then again 2004 will be (hopefully) a milestone in Director development. (I predict in a few years Flash+Director will completely merge) From erichg at mcmm.com Fri Jan 23 09:53:56 2004 From: erichg at mcmm.com (Erich Geiersberger) Date: Fri Jan 23 02:54:10 2004 Subject: A couple of questions on licensing Message-ID: Hi Ruslan, please answer the following questions on embedded licenses: In the license readme you write that I need to send the serial number from the client on connect. - May I also place the license file in folder "licenses" instead, I.e. install the server with my license file in folder "licenses"? Or do I explicitely need to send the number? - If so, do I need to send it both on VServer connects AND on VDatabase connects? - Since options is the last parameter, do I need to explicitely specify the port number, and a (client?) timeout too? - If I send this number and someone buys additional connections, how will this work together? - what about the disable DNS option you metioned? Where can it be specified? Thanks, Erich From xyzabc1010 at yahoo.com Fri Jan 23 08:39:03 2004 From: xyzabc1010 at yahoo.com (X Y) Date: Fri Jan 23 10:39:11 2004 Subject: a function like getdate() in SQL SRV In-Reply-To: Message-ID: <20040123163903.24819.qmail@web21110.mail.yahoo.com> Hi All, I was wondering if Valentina had a getdate() function similar to sql server. If not, is there any way one can get the date from the machine the vdb files are located? THNX __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb/ From xyzabc1010 at yahoo.com Fri Jan 23 08:38:55 2004 From: xyzabc1010 at yahoo.com (X Y) Date: Fri Jan 23 10:40:12 2004 Subject: a function like getdate() in SQL SRV In-Reply-To: Message-ID: <20040123163855.50231.qmail@web21103.mail.yahoo.com> Hi All, I was wondering if Valentina had a getdate() function similar to sql server. If not, is there any way one can get the date from the machine the vdb files are located? THNX __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb/ From christer at ljusaideer.se Fri Jan 23 19:21:43 2004 From: christer at ljusaideer.se (Christer Olsson) Date: Fri Jan 23 12:21:52 2004 Subject: [V4RB] Does order in constructor make difference? Message-ID: I've spent the last five hours to hunt down a problem I've never seen before. We're adding two new tables ("Rabatter" and "Rabattrader") to our main app, and when we tried to add data to the new tables the app crashed every time on the second table. It turned out that both tables were created just fine (i.e we could see and read them just fine with VAPP and ViSQL), but the baseObject for the second table ("Rabattrader"/"boRabattrader") had no fields... After lot's of spellchecking, renamning and recreating of properties, methods and objects I just switched the order of the new tables in the database constructor - and suddenly everything worked just fine. So, this didn't work: mInstallningar = new boInstallningar(self) mKunder = new boKunder(self) mArtiklar = new boArtiklar(self ) mOrder = new boOrder(self) mOrderrader = new boOrderrader(self) mRabatter = new boRabatter(self) mRabattrader = new boRabattRader(self) But this did: mInstallningar = new boInstallningar(self) mKunder = new boKunder(self) mArtiklar = new boArtiklar(self ) mOrder = new boOrder(self) mOrderrader = new boOrderrader(self) mRabattrader = new boRabattRader(self) mRabatter = new boRabatter(self) Any ideas? -- ************************************************************* Christer Olsson PO Box 9160 Phone +46 40 25 85 85 Ljusa Id?er AB SE-200 39 Malmoe Fax +46 40 25 85 89 Kantyxegatan 5 Sweden http://www.ljusaideer.se From cindy at kowhaiprogramming.com Sat Jan 24 10:28:14 2004 From: cindy at kowhaiprogramming.com (Cindy Brown) Date: Fri Jan 23 15:26:27 2004 Subject: [V4RB] Does order in constructor make difference? In-Reply-To: Message-ID: Hi, > I've spent the last five hours to hunt down a problem I've never seen before. > We're adding two new tables ("Rabatter" and "Rabattrader") to our main app, > and when we tried to add data to the new tables the app crashed every time on > the second table. > That's interesting. I've just spent three days working on (what I thought) was a fast project just to keep track of all my contact information. I set up two tablees in a single base object. The first table imported all my contacts. The second has no info as yet. The first has a number of methods calculated. When I run the program in RB, it works fine for a few records (just spacing through and changing one detail) and then crashes inexplicably. There is nothing wrong with the record. I wrote the whole thing again. Crashed in a different place. I have now tried in several different ways to write this (I write the database in VAPP) but it is causing inexplicable crashes in all sorts of odd places. I am using the latest download of V4RB and VAPP. When I run the database in VAPP with my basic data, the data will all load on the screen yet when I quit it always says quit unexpectedly. Very odd and also very time consuming. I'm not even sure where to begin looking for the problem as the data (with the methods) all appears to be working fine in VAPP and is also working fine with some records in RB but is just crashing completely at odd times. --- Cindy Brown Programmer SchoolMaster Kowhai Programming Systems PO Box 198, Invercargill 81 Marama Avenue South, 9RD Invercargill Phone (03) 213 1243 Fax (03) 213 1248 Mobile (021) 354 930 From cindy at kowhaiprogramming.com Sat Jan 24 13:01:26 2004 From: cindy at kowhaiprogramming.com (Cindy Brown) Date: Fri Jan 23 17:59:33 2004 Subject: [V4RB] Does order in constructor make difference? In-Reply-To: Message-ID: Just thought I'd add something. I found that if I create methods that rely on information in a method that I created later then it seems to crash. VAPP brings it up fine but spacing through a set of records creates problems. So, for example, if I have a method that says CONCAT(overall1,overall2), but overall1 and overall2 are methods that I created afterwards, the database seems to then fail. After putting the methods in the right order (deleting and recreating them) the database seems to be fine at this stage. I don't know if this helps at all. Cindy > Hi, > >> I've spent the last five hours to hunt down a problem I've never seen before. >> We're adding two new tables ("Rabatter" and "Rabattrader") to our main app, >> and when we tried to add data to the new tables the app crashed every time on >> the second table. >> > > That's interesting. I've just spent three days working on (what I thought) > was a fast project just to keep track of all my contact information. I set > up two tablees in a single base object. The first table imported all my > contacts. The second has no info as yet. The first has a number of methods > calculated. When I run the program in RB, it works fine for a few records > (just spacing through and changing one detail) and then crashes > inexplicably. There is nothing wrong with the record. I wrote the whole > thing again. Crashed in a different place. I have now tried in several > different ways to write this (I write the database in VAPP) but it is > causing inexplicable crashes in all sorts of odd places. I am using the > latest download of V4RB and VAPP. When I run the database in VAPP with my > basic data, the data will all load on the screen yet when I quit it always > says quit unexpectedly. Very odd and also very time consuming. I'm not even > sure where to begin looking for the problem as the data (with the methods) > all appears to be working fine in VAPP and is also working fine with some > records in RB but is just crashing completely at odd times. > > --- > > Cindy Brown > Programmer > SchoolMaster > > Kowhai Programming Systems > PO Box 198, Invercargill > 81 Marama Avenue South, 9RD Invercargill > Phone (03) 213 1243 > Fax (03) 213 1248 > Mobile (021) 354 930 > > > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > > -- Cindy Brown Programmer SchoolMaster Kowhai Programming Systems PO Box 198, Invercargill 81 Marama Avenue South, 9RD Invercargill Phone (03) 213 1243 Fax (03) 213 1248 Mobile (021) 354 930 From rwc1717 at shaw.ca Fri Jan 23 17:34:52 2004 From: rwc1717 at shaw.ca (Chuck) Date: Fri Jan 23 19:39:00 2004 Subject: Database works on 4.5.2 Message-ID: <0HRZ0071B0DSD1@l-daemon> Hi Ruslan: I just started testing my RB 4.5.2 app using RB 5.2.4 and I can add records but editing and removing has become problematic..ie: doesn't happen even though the debugger says that the record identified was deleted (RB 5.51b also) . Is this me or you? Thanks Chuck From delong at redcort.com Fri Jan 23 18:12:52 2004 From: delong at redcort.com (Keith DeLong) Date: Fri Jan 23 20:12:58 2004 Subject: Searchable List Archives Message-ID: I just noticed Ed Leafe's invaluable searchable archive for this list is gone. Is there a way to search the Macserve archives? I couldn't find one... Keith DeLong -- Redcort Software & Development http://redcort.com From dave at Parizek.com Fri Jan 23 20:11:46 2004 From: dave at Parizek.com (Dave Parizek) Date: Fri Jan 23 21:11:55 2004 Subject: getting recid in sql stmt but then in cursor has problem In-Reply-To: References: Message-ID: I understand you need to specify if you want the recid in a sql select stmt: select Solditem.RecId, * from Solditem and then this works correctly: w.lb.Cell(w.lb.LastIndex, w.RecIDCol) = mCursor.Field("RecID").GetString But if I use full field name it does NOT work, returns nil object in V4RB: w.lb.Cell(w.lb.LastIndex, w.RecIDCol) = mCursor.Field("Solditem.RecID").GetString So what do you do if you create a cursor that includes RecID's from 2 or more different tables, and you need to access those RecID's, how do you differentiate between them? The RecID I am getting in first example above is for the base object, right, not the cursor? If it is for the cursor or something, then how do I get the RecID for the record of the base object? Thanks, Dave -- _______________________________________________ Dave Parizek Bookseller Dave@Parizek.com From dave at Parizek.com Fri Jan 23 20:22:15 2004 From: dave at Parizek.com (Dave Parizek) Date: Fri Jan 23 21:22:22 2004 Subject: error 363 In-Reply-To: References: Message-ID: What is error 363? It is not listed in most recent kernal pdf error page and I get no results when I search the list archive under '363' Thanks, Dave -- _______________________________________________ Dave Parizek Bookseller Dave@Parizek.com From ed at leafe.com Fri Jan 23 22:59:30 2004 From: ed at leafe.com (Ed Leafe) Date: Fri Jan 23 21:59:15 2004 Subject: Searchable List Archives In-Reply-To: References: Message-ID: On Jan 23, 2004, at 9:12 PM, Keith DeLong wrote: > I just noticed Ed Leafe's invaluable searchable archive for this list > is gone. It is? News to me. ;-) It's where it's been for the last year or so: http://leafe.com/archives/search/valentina ___/ / __/ / ____/ Ed Leafe http://leafe.com/ http://opentech.leafe.com From delong at redcort.com Fri Jan 23 20:06:00 2004 From: delong at redcort.com (Keith DeLong) Date: Fri Jan 23 22:06:07 2004 Subject: Searchable List Archives In-Reply-To: Message-ID: > On Jan 23, 2004, at 9:12 PM, Keith DeLong wrote: > >> I just noticed Ed Leafe's invaluable searchable archive for this list >> is gone. > > It is? News to me. ;-) > It's where it's been for the last year or so: > http://leafe.com/archives/search/valentina So good to hear from you Ed, I had an old link bookmarked - http://leafe.com/ValentinaSearch.html Thanks for putting me back in business! Keith DeLong From dave at Parizek.com Fri Jan 23 21:09:53 2004 From: dave at Parizek.com (Dave Parizek) Date: Fri Jan 23 22:10:00 2004 Subject: CANCEL Re: error 363 In-Reply-To: References: Message-ID: Cancel that, I searched the archives by clicking thru from Valentina site and got no results, but when I searched here: http://leafe.com/archives/search/valentina I got plenty of results. Sorry, Dave >What is error 363? > >It is not listed in most recent kernal pdf error page and I get no >results when I search the list archive under '363' > >Thanks, >Dave >-- >_______________________________________________ >Dave Parizek >Bookseller >Dave@Parizek.com > > >_______________________________________________ >Valentina mailing list >Valentina@lists.macserve.net >http://lists.macserve.net/mailman/listinfo/valentina -- _______________________________________________ Dave Parizek Bookseller Dave@Parizek.com From dave at Parizek.com Fri Jan 23 22:50:25 2004 From: dave at Parizek.com (Dave Parizek) Date: Fri Jan 23 23:50:32 2004 Subject: question understanding lock levels In-Reply-To: References: Message-ID: If I create a cursor in V4RB 1.98 and do not specify a lock level, it will be ReadOnly by default. That means other processes can read but not write, correct? the term, 'readonly', refers to how other processes are affected, what others CAN DO. But 'readwrite' means other processes cannot read or write, thus referring to what others CANNOT DO. It seems the 2 terms should be in the same space as far as CAN DO or CANNOT DO. Like it should be no_lock, writes_locked, reads_and_writes_locked. Or it should be read_write_ok, read_ok, neither_ok. But mixing terms from the 2 sets makes it confusing. Oh well, just semantics. Back to my real problem: If I set that cursor to nil, the lock should be destroyed, correct? I seem to be having problems where the lock still exists even after setting mCursor = nil, has anyone else seen this? I'm getting 363 errors when I try and do a SQLExecute, and I have no cursors in existence at the point when the SQLExecute occurs, or so I think. To end the lock, do you need to do something else besides setting the cursor to nil? --Dave -- _______________________________________________ Dave Parizek Bookseller Dave@Parizek.com From sunshine at public.kherson.ua Sat Jan 24 09:43:04 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jan 24 01:43:15 2004 Subject: OFF: snow storm Message-ID: Hi guys, We have had here small snow storm, There was broken a lots of electro-lines. So I was offline 1.5 days. Now I am online. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From valentina at brainchild.nl Sat Jan 24 08:53:26 2004 From: valentina at brainchild.nl (Richard Altenburg) Date: Sat Jan 24 01:54:11 2004 Subject: [V4RB] ReadOnly Cursor doesn't need to lock records, does it? Message-ID: Using version 1.10 of Valentina for REALbasic, I started playing with Cursors after more than half a year of working on other stuff (so maybe I forgot some details about how Valentina used to work). I have a window with a ListBox, that constantly shows the contents of a Cursor. That Cursor was created as ReadOnly, because I only need it for displaying purposes. I want a second Cursor on the same BaseObject to delete records, and this second Cursor was created as ReadWrite. But I get an error mesage telling me that there is a lock on some record. Deleting only works when I dispose the first ReadOnly Cursor (I set it to Nil). I find this strange, and could need some help... -- Richard Altenburg Brainchild Picture Patrol From sunshine at public.kherson.ua Sat Jan 24 12:47:03 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jan 24 04:47:13 2004 Subject: Database works on 4.5.2 In-Reply-To: <0HRZ0071B0DSD1@l-daemon> Message-ID: on 1/24/04 12:34 AM, Chuck at rwc1717@shaw.ca wrote: > Hi Ruslan: > I just started testing my RB 4.5.2 app using RB 5.2.4 and I can add records > but editing and removing has become problematic..ie: doesn't happen even > though > the debugger says that the record identified was deleted (RB 5.51b also) . > Is this me or you? Hi Chuck, As far as I know people use Valentina with RB 5.x So should works, Try run V4RB examples to see if they works -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sat Jan 24 12:52:13 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jan 24 04:52:19 2004 Subject: A couple of questions on licensing In-Reply-To: Message-ID: on 1/23/04 10:53 AM, Erich Geiersberger at erichg@mcmm.com wrote: Hi Erich, > please answer the following questions on embedded licenses: > > In the license readme you write that I need to send the serial number > from the client on connect. > > - May I also place the license file in folder "licenses" instead, > I.e. install the server with my license file in folder "licenses"? Or > do I explicitely need to send the number? You have got from me A) license_emb_xxxxx file. you need put this file and only it into licenses folder of your distribution. B) this license_emb file is signed by YOUR signature. you have also get from me this SIGNATURE. You MUST send this signature from your client in the option parameter on any connect to Vserver. > - If so, do I need to send it both on VServer connects AND on > VDatabase connects? Yes, on any and each connect. Your Vserver is SIGNED by licene_emb file. It will accept ONLY signed connections now. > - Since options is the last parameter, do I need to explicitely > specify the port number, and a (client?) timeout too? Yes. And note, for you own distribution you MUST choose other port. To not conflict with OTHER Vserver-based apps. So on server you specify this new port in the ini file And on connect you send it also. > - If I send this number and someone buys additional connections, how > will this work together? But what problems? Port and Timeout is not related to the number of connections. > - what about the disable DNS option you metioned? Where can it be specified? In the server ini file. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From erichg at mcmm.com Sat Jan 24 14:43:23 2004 From: erichg at mcmm.com (Erich Geiersberger) Date: Sat Jan 24 07:55:11 2004 Subject: A couple of questions on licensing In-Reply-To: References: Message-ID: > > - Since options is the last parameter, do I need to explicitely > > specify the port number, and a (client?) timeout too? > >Yes. This brings up the next question: Which has the higher priority? How do they work together? If I need to specify a timeout on client connect and the database has its own client timeout, will the ini settings LIMIT or OVERRIDE client settings? Erich From erichg at mcmm.com Sat Jan 24 14:52:37 2004 From: erichg at mcmm.com (Erich Geiersberger) Date: Sat Jan 24 07:55:19 2004 Subject: question understanding lock levels In-Reply-To: References: Message-ID: >Back to my real problem: > >If I set that cursor to nil, the lock should be destroyed, correct? > >I seem to be having problems where the lock still exists even after >setting mCursor = nil, has anyone else seen this? I'm getting 363 >errors when I try and do a SQLExecute, and I have no cursors in >existence at the point when the SQLExecute occurs, or so I think. > >To end the lock, do you need to do something else besides setting >the cursor to nil? Do you flush the DB after writes? I can't tell for RB, but I am having smaller problems using V4MD with records being locked sometimes for a short period of time after write access. Since I flush the DB after each write I thought this might be related to the flush. When I try to access them for a second time they are readble again. Erich From sunshine at public.kherson.ua Sat Jan 24 18:48:32 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jan 24 10:48:40 2004 Subject: ValentinaInit In-Reply-To: Message-ID: on 1/24/04 1:26 PM, yesprasoon@rediffmail.com at yesprasoon@rediffmail.com wrote: > Name: prasoon > > Question regarding: v4md > > Is there any way to check whether valentina is inited or not before using > ValentinaInit? The problem is -if i m not closing the movie properly(i.e. > using valentinashutdown function) due to power cut or something else, > valentina remains open and creates problem while opening projector next time.I > have to write valentinashutdown in dir message window, then it runs properly. > I've tried by using valentinashutdown b4 valentinainit but as expected it's > giving error. What could be the permanent solution for this? Hmm, On power cut, or Director crash, -- Valentina cannot stay inited. Because Valentina will die together with Director. So I assume you talk about case, when Movie stops, but Director still is ON. I think the most right way is shown in V4MD examples, When ShutDown must present in the movieStop handler. In this case it always will be called. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sat Jan 24 19:01:54 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jan 24 11:04:21 2004 Subject: a function like getdate() in SQL SRV In-Reply-To: <20040123163903.24819.qmail@web21110.mail.yahoo.com> Message-ID: on 1/23/04 6:39 PM, X Y at xyzabc1010@yahoo.com wrote: > Hi All, > I was wondering if Valentina had a getdate() function > similar to sql server. If not, is there any way one > can get the date from the machine the vdb files are > located? You mean the current date? It seams 1.x do not have it. In 2.0 was added. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sat Jan 24 19:05:55 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jan 24 11:06:02 2004 Subject: [V4RB] Does order in constructor make difference? In-Reply-To: Message-ID: on 1/23/04 8:21 PM, Christer Olsson at christer@ljusaideer.se wrote: > I've spent the last five hours to hunt down a problem I've never seen before. > We're adding two new tables ("Rabatter" and "Rabattrader") to our main app, > and when we tried to add data to the new tables the app crashed every time on > the second table. > > It turned out that both tables were created just fine (i.e we could see and > read them just fine with VAPP and ViSQL), but the baseObject for the second > table ("Rabattrader"/"boRabattrader") had no fields... > > After lot's of spellchecking, renamning and recreating of properties, methods > and objects I just switched the order of the new tables in the database > constructor - and suddenly everything worked just fine. > > So, this didn't work: > mInstallningar = new boInstallningar(self) > mKunder = new boKunder(self) > mArtiklar = new boArtiklar(self ) > mOrder = new boOrder(self) > mOrderrader = new boOrderrader(self) > mRabatter = new boRabatter(self) > mRabattrader = new boRabattRader(self) > > But this did: > mInstallningar = new boInstallningar(self) > mKunder = new boKunder(self) > mArtiklar = new boArtiklar(self ) > mOrder = new boOrder(self) > mOrderrader = new boOrderrader(self) > mRabattrader = new boRabattRader(self) > mRabatter = new boRabatter(self) > > Any ideas? Hi Christer, Yes, order does mater. When you use classes. It does not mater, if you simply use Vdatabase and SQL. This is why it is danger go to VAPP, add few tables with many fields, Then jump to RB and write code. Most probably in this case you will not get the same order. This is why you need create db/tables programmatically. And this is why new feature of Valentina Studio (Generate Code) will be very helpful for developers. It self will create code in the correct order. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sat Jan 24 19:11:08 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jan 24 11:11:16 2004 Subject: [V4RB] Does order in constructor make difference? In-Reply-To: Message-ID: on 1/24/04 2:01 AM, Cindy Brown at cindy@kowhaiprogramming.com wrote: > Just thought I'd add something. I found that if I create methods that rely > on information in a method that I created later then it seems to crash. VAPP > brings it up fine but spacing through a set of records creates problems. So, > for example, if I have a method that says CONCAT(overall1,overall2), but > overall1 and overall2 are methods that I created afterwards, the database > seems to then fail. After putting the methods in the right order (deleting > and recreating them) the database seems to be fine at this stage. VERY Strange. Because I 100% sure present protection for this case. Special for this, I do second pass on BaseObject methods to Get fields/methods created after this method. Strange. You point that overall1 and overall2 are methods. May be I have protection only for fields... -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sat Jan 24 19:13:24 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jan 24 11:13:28 2004 Subject: getting recid in sql stmt but then in cursor has problem In-Reply-To: Message-ID: on 1/24/04 5:11 AM, Dave Parizek at dave@Parizek.com wrote: > I understand you need to specify if you want the recid in a sql select stmt: > > select Solditem.RecId, * from Solditem > > and then this works correctly: > > w.lb.Cell(w.lb.LastIndex, w.RecIDCol) = mCursor.Field("RecID").GetString > > > > But if I use full field name it does NOT work, returns nil object in V4RB: > > w.lb.Cell(w.lb.LastIndex, w.RecIDCol) = > mCursor.Field("Solditem.RecID").GetString ^^^^^^^^^^^ Dave, in this place full name NEVER did work. > So what do you do if you create a cursor that includes RecID's from 2 > or more different tables, and you need to access those RecID's, how > do you differentiate between them? By INDEX GetField(1) GetField(2) > The RecID I am getting in first example above is for the base object, > right, not the cursor? If it is for the cursor or something, then > how do I get the RecID for the record of the base object? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sat Jan 24 19:16:29 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jan 24 11:16:34 2004 Subject: question understanding lock levels In-Reply-To: Message-ID: on 1/24/04 7:50 AM, Dave Parizek at dave@Parizek.com wrote: > If I create a cursor in V4RB 1.98 and do not specify a lock level, it > will be ReadOnly by default. > > That means other processes can read but not write, correct? yes > the term, 'readonly', refers to how other processes are affected, > what others CAN DO. yes > But 'readwrite' means other processes cannot read or write, thus > referring to what others CANNOT DO. It seems the 2 terms should be > in the same space as far as CAN DO or CANNOT DO. I think both can be considered in term as: IF you was able set lock READ ONLY on a record, then YOU can read it only. IF you was able set lock READ WRITE on a record, then YOU can read and write it. I do not consider what OTHERS can do. Important what I can do > Like it should be > no_lock, writes_locked, reads_and_writes_locked. Or it should be > read_write_ok, read_ok, neither_ok. But mixing terms from the 2 sets > makes it confusing. > > Oh well, just semantics. > > Back to my real problem: > > If I set that cursor to nil, the lock should be destroyed, correct? > > I seem to be having problems where the lock still exists even after > setting mCursor = nil, has anyone else seen this? I'm getting 363 > errors when I try and do a SQLExecute, and I have no cursors in > existence at the point when the SQLExecute occurs, or so I think. > > To end the lock, do you need to do something else besides setting the > cursor to nil? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sat Jan 24 19:18:30 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jan 24 11:19:10 2004 Subject: [V4RB] ReadOnly Cursor doesn't need to lock records, does it? In-Reply-To: Message-ID: on 1/24/04 9:53 AM, Richard Altenburg at valentina@brainchild.nl wrote: > Using version 1.10 of Valentina for REALbasic, I started playing with > Cursors after more than half a year of working on other stuff (so maybe I > forgot some details about how Valentina used to work). > > I have a window with a ListBox, that constantly shows the contents of a > Cursor. That Cursor was created as ReadOnly, because I only need it for > displaying purposes. > > I want a second Cursor on the same BaseObject to delete records, and this > second Cursor was created as ReadWrite. But I get an error mesage telling me > that there is a lock on some record. > > Deleting only works when I dispose the first ReadOnly Cursor (I set it to > Nil). > > I find this strange, and could need some help... Hi Richard, Yes, this is how it works in 1.9.8 and 1.10 now. In similar way it works in BIG dbs also. IF you VERY need the first cursor to show ALL records, You can use for it NoLocks -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sat Jan 24 19:20:34 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jan 24 11:21:42 2004 Subject: A couple of questions on licensing In-Reply-To: Message-ID: on 1/24/04 3:43 PM, Erich Geiersberger at erichg@mcmm.com wrote: >>> - Since options is the last parameter, do I need to explicitely >>> specify the port number, and a (client?) timeout too? >> >> Yes. > > This brings up the next question: > Which has the higher priority? How do they work together? > If I need to specify a timeout on client connect and the database has > its own client timeout, will the ini settings LIMIT or OVERRIDE > client settings? Aha, Erich, these are 2 DIFFERENT parameters! Client timeout from client side -- this is time that client is ready to wait on server answer. After timeout client get error. Server's "client idle" -- is the time after which client will be disconnected IF during this time it have no any activity. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From christer at ljusaideer.se Sat Jan 24 19:03:34 2004 From: christer at ljusaideer.se (Christer Olsson) Date: Sat Jan 24 12:03:25 2004 Subject: [V4RB] Does order in constructor make difference? In-Reply-To: References: Message-ID: >on 1/23/04 8:21 PM, Christer Olsson at christer@ljusaideer.se wrote: > >> I've spent the last five hours to hunt down a problem I've never seen before. >> We're adding two new tables ("Rabatter" and "Rabattrader") to our main app, >> and when we tried to add data to the new tables the app crashed every time on >> the second table. >> >> It turned out that both tables were created just fine (i.e we could see and >> read them just fine with VAPP and ViSQL), but the baseObject for the second >> table ("Rabattrader"/"boRabattrader") had no fields... >> >> After lot's of spellchecking, renamning and recreating of properties, methods >> and objects I just switched the order of the new tables in the database >> constructor - and suddenly everything worked just fine. >> >> So, this didn't work: >> mInstallningar = new boInstallningar(self) >> mKunder = new boKunder(self) >> mArtiklar = new boArtiklar(self ) >> mOrder = new boOrder(self) >> mOrderrader = new boOrderrader(self) >> mRabatter = new boRabatter(self) >> mRabattrader = new boRabattRader(self) >> >> But this did: >> mInstallningar = new boInstallningar(self) >> mKunder = new boKunder(self) >> mArtiklar = new boArtiklar(self ) >> mOrder = new boOrder(self) >> mOrderrader = new boOrderrader(self) >> mRabattrader = new boRabattRader(self) >> mRabatter = new boRabatter(self) >> >> Any ideas? > >Hi Christer, > >Yes, order does mater. When you use classes. >It does not mater, if you simply use Vdatabase and SQL. > >This is why it is danger go to VAPP, add few tables with many fields, >Then jump to RB and write code. > >Most probably in this case you will not get the same order. > >This is why you need create db/tables programmatically. Both db and tables are created in code. And "Rabatter" is created before "Rabattrader". As order matters, please tell what rules to follow, as I can't find anything regariding this in the docs. -- ************************************************************* Christer Olsson PO Box 9160 Phone +46 40 25 85 85 Ljusa Id?er AB SE-200 39 Malmoe Fax +46 40 25 85 89 Kantyxegatan 5 Sweden http://www.ljusaideer.se From erichg at mcmm.com Sat Jan 24 19:34:22 2004 From: erichg at mcmm.com (Erich Geiersberger) Date: Sat Jan 24 12:34:35 2004 Subject: A couple of questions on licensing In-Reply-To: References: Message-ID: >Aha, > >Erich, these are 2 DIFFERENT parameters! > >Client timeout from client side -- this is time that client is ready to wait >on server answer. After timeout client get error. > > >Server's "client idle" -- is the time after which client will be >disconnected IF during this time it have no any activity. I understand. What time unit does it expect? Seems to be seconds... Erich From sunshine at public.kherson.ua Sat Jan 24 20:47:59 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jan 24 12:48:08 2004 Subject: A couple of questions on licensing In-Reply-To: Message-ID: on 1/24/04 8:34 PM, Erich Geiersberger at erichg@mcmm.com wrote: >> Aha, >> >> Erich, these are 2 DIFFERENT parameters! >> >> Client timeout from client side -- this is time that client is ready to wait >> on server answer. After timeout client get error. >> >> >> Server's "client idle" -- is the time after which client will be >> disconnected IF during this time it have no any activity. > > I understand. What time unit does it expect? > Seems to be seconds... It seems client's seconds server's minutes -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sat Jan 24 20:51:41 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jan 24 12:51:47 2004 Subject: [V4RB] Does order in constructor make difference? In-Reply-To: Message-ID: on 1/24/04 8:03 PM, Christer Olsson at christer@ljusaideer.se wrote: >>> I've spent the last five hours to hunt down a problem I've never seen >>> before. >>> We're adding two new tables ("Rabatter" and "Rabattrader") to our main app, >>> and when we tried to add data to the new tables the app crashed every time >>> on >>> the second table. >>> >>> It turned out that both tables were created just fine (i.e we could see and >>> read them just fine with VAPP and ViSQL), but the baseObject for the second >>> table ("Rabattrader"/"boRabattrader") had no fields... >>> >>> After lot's of spellchecking, renamning and recreating of properties, >>> methods >>> and objects I just switched the order of the new tables in the database >>> constructor - and suddenly everything worked just fine. >>> >>> So, this didn't work: >>> mInstallningar = new boInstallningar(self) >>> mKunder = new boKunder(self) >>> mArtiklar = new boArtiklar(self ) >>> mOrder = new boOrder(self) >>> mOrderrader = new boOrderrader(self) >>> mRabatter = new boRabatter(self) >>> mRabattrader = new boRabattRader(self) >>> >>> But this did: >>> mInstallningar = new boInstallningar(self) >>> mKunder = new boKunder(self) >>> mArtiklar = new boArtiklar(self ) >>> mOrder = new boOrder(self) >>> mOrderrader = new boOrderrader(self) >>> mRabattrader = new boRabattRader(self) >>> mRabatter = new boRabatter(self) >>> >>> Any ideas? >> >> Hi Christer, >> >> Yes, order does mater. When you use classes. >> It does not mater, if you simply use Vdatabase and SQL. >> >> This is why it is danger go to VAPP, add few tables with many fields, >> Then jump to RB and write code. >> >> Most probably in this case you will not get the same order. >> >> This is why you need create db/tables programmatically. > > Both db and tables are created in code. And "Rabatter" is created before > "Rabattrader". > > As order matters, please tell what rules to follow, as I can't find anything > regariding this in the docs. Aha, then you have other problem I think. I have describe problem, when you in VAPP create tables, Then try in code mirror that, So you have change order of tables in code, And now you can do db.create(), yes? Before that it have crash? Then I think in table boRabatter you have an ObjectPtr Which points boRabattRader. Therefore it must be AFTER you create boRabattRader object. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From christer at ljusaideer.se Sat Jan 24 20:55:42 2004 From: christer at ljusaideer.se (Christer Olsson) Date: Sat Jan 24 13:55:33 2004 Subject: [V4RB] Does order in constructor make difference? In-Reply-To: References: Message-ID: >on 1/24/04 8:03 PM, Christer Olsson at christer@ljusaideer.se wrote: > >>>> I've spent the last five hours to hunt down a problem I've never seen >>>> before. >>>> We're adding two new tables ("Rabatter" and "Rabattrader") to our main app, >>>> and when we tried to add data to the new tables the app crashed every time >>>> on >>>> the second table. >>>> >>>> It turned out that both tables were created just fine (i.e we could see and >>>> read them just fine with VAPP and ViSQL), but the baseObject for the second >>>> table ("Rabattrader"/"boRabattrader") had no fields... >>>> >>>> After lot's of spellchecking, renamning and recreating of properties, >>>> methods >>>> and objects I just switched the order of the new tables in the database >>>> constructor - and suddenly everything worked just fine. >>>> >>>> So, this didn't work: >>>> mInstallningar = new boInstallningar(self) >>>> mKunder = new boKunder(self) >>>> mArtiklar = new boArtiklar(self ) >>>> mOrder = new boOrder(self) >>>> mOrderrader = new boOrderrader(self) >>>> mRabatter = new boRabatter(self) >>>> mRabattrader = new boRabattRader(self) >>>> >>>> But this did: >>>> mInstallningar = new boInstallningar(self) >>>> mKunder = new boKunder(self) >>>> mArtiklar = new boArtiklar(self ) >>>> mOrder = new boOrder(self) >>>> mOrderrader = new boOrderrader(self) >>>> mRabattrader = new boRabattRader(self) >>>> mRabatter = new boRabatter(self) >>>> >>>> Any ideas? >>> >>> Hi Christer, >>> >>> Yes, order does mater. When you use classes. >>> It does not mater, if you simply use Vdatabase and SQL. >>> >>> This is why it is danger go to VAPP, add few tables with many fields, >>> Then jump to RB and write code. >>> >>> Most probably in this case you will not get the same order. >>> >>> This is why you need create db/tables programmatically. >> >> Both db and tables are created in code. And "Rabatter" is created before >> "Rabattrader". >> >> As order matters, please tell what rules to follow, as I can't find anything >> regariding this in the docs. > >Aha, then you have other problem I think. > >I have describe problem, when you in VAPP create tables, >Then try in code mirror that, > >So you have change order of tables in code, >And now you can do db.create(), yes? >Before that it have crash? I have had no problems with creating tables. >Then I think in table boRabatter you have an ObjectPtr >Which points boRabattRader. >Therefore it must be AFTER you create boRabattRader object. It's actually the other way around. There's an ObjectPtr in boRabattRader that points to boRabatter. -- ************************************************************* Christer Olsson PO Box 9160 Phone +46 40 25 85 85 Ljusa Id?er AB SE-200 39 Malmoe Fax +46 40 25 85 89 Kantyxegatan 5 Sweden http://www.ljusaideer.se From valentina at brainchild.nl Sat Jan 24 21:12:24 2004 From: valentina at brainchild.nl (Richard Altenburg) Date: Sat Jan 24 14:13:08 2004 Subject: [V4RB] ReadOnly Cursor doesn't need to lock records, does it? In-Reply-To: Message-ID: On 24-01-2004 18:18, "Ruslan Zasukhin" wrote: > IF you VERY need the first cursor to show ALL records, > You can use for it NoLocks So does ReadOnly on a Cursor mean that all records in it are ReadOnly for others? I thought it would be ReadOnly for my process that created the Cursor. So I will try NoLocks, because I do need a Cursor that has all records in it, and several other cursors that handle other tasks. -- Richard Altenburg Brainchild Picture Patrol From cindy at kowhaiprogramming.com Sun Jan 25 09:36:33 2004 From: cindy at kowhaiprogramming.com (Cindy Brown) Date: Sat Jan 24 14:34:38 2004 Subject: [V4RB] Does order in constructor make difference? In-Reply-To: Message-ID: Hi Ruslan, I spent ages on this database. I thought I had got it right in the end by changing the order but I would get to a certain point in the database and it would fail. The program would just quit. In VAPP the data looked fine, the methods calculated correctly. I found, though, that in doing particular methods which are set as strings: substr(School_Number+4659,2,1) Substr(School_Number+4659,3,1) Substr(School_Number+4659,1,1) These would fail on the odd record completely. Yet: Substr(School_Number+4659,4,1) would always work. School_Number is a short field. You have no ability to set in a method a field as a string and normally it just uses the number as a string if I set it in a concat or a substr but in this case it just didn't work. I would like to stress that in VAPP it calculates perfectly. It just in V4RB. And I can run through 2000 records with no problems, the record showing properly, and on the 2001st record it fails. It is actually always the same records that fail. So then I deleted the record and retyped it in from scratch making sure the characters were all fine. It still failed. The record is not obviously different from the other records. I found at least four records that fail. Once I removed those particular method commands and actually programmed them within RB, the records are working with no problems. I can send you a small database on this if you want. Cindy > on 1/24/04 2:01 AM, Cindy Brown at cindy@kowhaiprogramming.com wrote: > >> Just thought I'd add something. I found that if I create methods that rely >> on information in a method that I created later then it seems to crash. VAPP >> brings it up fine but spacing through a set of records creates problems. So, >> for example, if I have a method that says CONCAT(overall1,overall2), but >> overall1 and overall2 are methods that I created afterwards, the database >> seems to then fail. After putting the methods in the right order (deleting >> and recreating them) the database seems to be fine at this stage. > > VERY Strange. Because I 100% sure present protection for this case. > > Special for this, I do second pass on BaseObject methods to > Get fields/methods created after this method. > > Strange. > > You point that overall1 and overall2 are methods. > May be I have protection only for fields... -- Cindy Brown Programmer SchoolMaster Kowhai Programming Systems PO Box 198, Invercargill 81 Marama Avenue South, 9RD Invercargill Phone (03) 213 1243 Fax (03) 213 1248 Mobile (021) 354 930 From sunshine at public.kherson.ua Sat Jan 24 22:43:26 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jan 24 14:43:34 2004 Subject: [V4RB] ReadOnly Cursor doesn't need to lock records, does it? In-Reply-To: Message-ID: on 1/24/04 10:12 PM, Richard Altenburg at valentina@brainchild.nl wrote: >> IF you VERY need the first cursor to show ALL records, >> You can use for it NoLocks > > So does ReadOnly on a Cursor mean that all records in it are ReadOnly for > others? I thought it would be ReadOnly for my process that created the > Cursor. No, if one set READ lock, then nobody cannot set WRITE lock on that record. > So I will try NoLocks, because I do need a Cursor that has all records in > it, and several other cursors that handle other tasks. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sat Jan 24 22:45:41 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jan 24 14:45:46 2004 Subject: [V4RB] Does order in constructor make difference? In-Reply-To: Message-ID: on 1/24/04 10:36 PM, Cindy Brown at cindy@kowhaiprogramming.com wrote: > Hi Ruslan, > > I spent ages on this database. I thought I had got it right in the end by > changing the order but I would get to a certain point in the database and it > would fail. The program would just quit. In VAPP the data looked fine, the > methods calculated correctly. > > I found, though, that in doing particular methods which are set as strings: > > substr(School_Number+4659,2,1) > Substr(School_Number+4659,3,1) > Substr(School_Number+4659,1,1) > > These would fail on the odd record completely. Yet: > > Substr(School_Number+4659,4,1) would always work. > > School_Number is a short field. You have no ability to set in a method a > field as a string and normally it just uses the number as a string if I set > it in a concat or a substr but in this case it just didn't work. > > I would like to stress that in VAPP it calculates perfectly. It just in > V4RB. And I can run through 2000 records with no problems, the record > showing properly, and on the 2001st record it fails. It is actually always > the same records that fail. So then I deleted the record and retyped it in > from scratch making sure the characters were all fine. It still failed. The > record is not obviously different from the other records. I found at least > four records that fail. > > Once I removed those particular method commands and actually programmed them > within RB, the records are working with no problems. > > I can send you a small database on this if you want. Yes of course. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sat Jan 24 23:33:14 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jan 24 15:33:22 2004 Subject: [V4MD] Classic and Carbon Xtras // unexpected error In-Reply-To: Message-ID: on 1/22/04 1:02 PM, yesprasoon@rediffmail.com at yesprasoon@rediffmail.com wrote: > Name: prasoon > > Problem with: V4MD > Type of problem: wrong_result > > I've downloaded two versions of valentina(for mac os x and classic). I've put > both in XTRAS folder which i kept in the native folder of projector > itself.It's running fine for Mac Classic but on Mac os X it's giving > "unexpected error".As soon as i delete the classic xtra V4MD it's > again running fine on MacOsX, but obviously it's giving script error for mac > classic projector. Now please tell me how to handle the situation as i've to > create same projector for both.(Note that no other xtra is creating problem in > the same context as i've checked)My company is planning to buy this > xtra.Please help me.... THANX, Hi Prasoon, I have to think here, and I wonder now: * Does Director MX generate THE SAME projector for both Classic and Carbon? * I doubt, because all other IDEs usually build for each target separate executable. If this is true for Director also, then you should get 2 Projectors. And then you will have 2 folders Xtras one for each projector. ------ In case Director is VERY smart, and produce single projector, Then only a way I see -- put Xtras into separate folder, And do in the your code manual loading of Xtra depending on OS. Director have such feature. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From rwc1717 at shaw.ca Sat Jan 24 13:39:11 2004 From: rwc1717 at shaw.ca (Chuck) Date: Sat Jan 24 15:44:24 2004 Subject: Database works on 4.5.2 Message-ID: <0HS00033QK4S7J@l-daemon> Hi Ruslan: I tried your examples, I was able to delete & update in your examples, however I couldn't find any that mimic what I am doing exactly... I search the database using....for a record rs = VCursor res as Boolean rs = Nil rs = mDB.SQLSelect("select * from active where id ='"uid"'") if rs.recordcount > 0 then res = rs.delete end if mDb.Flush or instead of deleting I try to use the following method for updating..... rs.Field("dateset").SetString("an edited date") rs.Field("descript").SetString("an edited message) rs.Field("aptime").SetString("an edited time") rs.Filed("id").SetString("old id number") res= rs.Update mDb.Flush Neither does babkiss, rien, nada...moreover in 4.5.2 it works flawlessly. Any Ideas? Thanks Chuck From listmail at gearyweb.com Sat Jan 24 14:52:38 2004 From: listmail at gearyweb.com (michael geary) Date: Sat Jan 24 15:52:29 2004 Subject: ValentinaInit In-Reply-To: References: Message-ID: Not true. If a Director movie is stopped by hitting CMD-Period, the Stop Movie handler will not be called. This has caused me some worry. What can/should we do in Authoring mode if we need to stop a movie with CMD-. ? Should we do some sort of safety check before using the DB again? -michael On Jan 24, 2004, at 9:48 AM, Ruslan Zasukhin wrote: > On power cut, or Director crash, -- Valentina cannot stay inited. > Because Valentina will die together with Director. > > So I assume you talk about case, when Movie stops, but Director still > is ON. > > I think the most right way is shown in V4MD examples, > When ShutDown must present in the movieStop handler. > In this case it always will be called. From sunshine at public.kherson.ua Sat Jan 24 23:55:38 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jan 24 15:55:46 2004 Subject: Database works on 4.5.2 In-Reply-To: <0HS00033QK4S7J@l-daemon> Message-ID: on 1/24/04 8:39 PM, Chuck at rwc1717@shaw.ca wrote: > Hi Ruslan: > I tried your examples, I was able to delete & update in your examples, > however I couldn't find any that mimic what I am doing exactly... > I search the database using....for a record > rs = VCursor > res as Boolean > rs = Nil > rs = mDB.SQLSelect("select * from active where id ='"uid"'") > if rs.recordcount > 0 then > res = rs.delete > end if > mDb.Flush > > or instead of deleting I try to use the following method for updating..... > > rs.Field("dateset").SetString("an edited date") > rs.Field("descript").SetString("an edited message) > rs.Field("aptime").SetString("an edited time") > rs.Filed("id").SetString("old id number") > res= rs.Update > mDb.Flush > > Neither does babkiss, rien, nada...moreover in 4.5.2 it works flawlessly. > > Any Ideas? Yes of course, Chuck. I think problem NOT in RB 4.5.2 or 5.x As I see you have forget specify LockParameters in the cursor > rs = mDB.SQLSelect("select * from active where id ='"uid"'") ^^^^^^^^^^^^^^^^^^^^^^^^^ Please read docs on this function SQLSelect -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sat Jan 24 23:58:14 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jan 24 15:58:23 2004 Subject: ValentinaInit In-Reply-To: Message-ID: on 1/24/04 11:52 PM, michael geary at listmail@gearyweb.com wrote: > Not true. If a Director movie is stopped by hitting CMD-Period, the > Stop Movie handler will not be called. This has caused me some worry. I see. > What can/should we do in Authoring mode if we need to stop a movie with > CMD-. ? Should we do some sort of safety check before using the DB > again? I do not think so. ValentinaInit() can be called many times. It self check that if it is inited then do nothing. > -michael > > On Jan 24, 2004, at 9:48 AM, Ruslan Zasukhin wrote: > >> On power cut, or Director crash, -- Valentina cannot stay inited. >> Because Valentina will die together with Director. >> >> So I assume you talk about case, when Movie stops, but Director still >> is ON. >> >> I think the most right way is shown in V4MD examples, >> When ShutDown must present in the movieStop handler. >> In this case it always will be called. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From dave at Parizek.com Sat Jan 24 18:36:14 2004 From: dave at Parizek.com (Dave Parizek) Date: Sat Jan 24 19:36:22 2004 Subject: question understanding lock levels In-Reply-To: References: Message-ID: >>Back to my real problem: >> >>If I set that cursor to nil, the lock should be destroyed, correct? >> >>I seem to be having problems where the lock still exists even after >>setting mCursor = nil, has anyone else seen this? I'm getting 363 >>errors when I try and do a SQLExecute, and I have no cursors in >>existence at the point when the SQLExecute occurs, or so I think. >> >>To end the lock, do you need to do something else besides setting >>the cursor to nil? > >Do you flush the DB after writes? >I can't tell for RB, but I am having smaller problems using V4MD >with records being locked sometimes for a short period of time after >write access. > >Since I flush the DB after each write I thought this might be >related to the flush. When I try to access them for a second time >they are readble again. > >Erich > The cursor I am using in the case above doesn't do any writes. I think I have seen what you mention though in other cases. --dave -- _______________________________________________ Dave Parizek Bookseller Dave@Parizek.com From dave at Parizek.com Sat Jan 24 18:40:48 2004 From: dave at Parizek.com (Dave Parizek) Date: Sat Jan 24 19:40:53 2004 Subject: [V4RB] ReadOnly Cursor doesn't need to lock records, does it? In-Reply-To: References: Message-ID: >on 1/24/04 10:12 PM, Richard Altenburg at valentina@brainchild.nl wrote: > >>> IF you VERY need the first cursor to show ALL records, >>> You can use for it NoLocks >> >> So does ReadOnly on a Cursor mean that all records in it are ReadOnly for >> others? Yes, above is correct. You will need use no locks, or not have simultaneous cursors. It confused me a lot too. >I thought it would be ReadOnly for my process that created the >> Cursor. > >No, if one set READ lock, then nobody cannot set WRITE lock on that record. > >> So I will try NoLocks, because I do need a Cursor that has all records in > it, and several other cursors that handle other tasks. Yes, just keep in mind of course that data could be changing and the nolock cursors may not realize it. --Dave -- _______________________________________________ Dave Parizek Bookseller Dave@Parizek.com From delong at redcort.com Sat Jan 24 22:32:26 2004 From: delong at redcort.com (Keith DeLong) Date: Sun Jan 25 00:32:33 2004 Subject: Select Max question Message-ID: My lack of SQL knowledge is frustrating me tonight...again. I cannot figure out how to get the latest entry for each person in a table. I started with: SELECT Max(Date_Entered) FROM Matters As expected, this returns the last entry made in the date. However, I want the last entry for each person. So I next tried to get the max for a given person: SELECT Max(Date_Entered) FROM Matters Where Person_ID = 4 I got the same result as above. After some experimentation it seems Valentina is ignoring the WHERE clause all together when Max is used. This seems also true for Distinct. Is this the normal way for SQL to work or a Valentina oddity? Is there is a query solution that I am missing at this late hour of a long week? Thanks, Keith DeLong V4RB 1.10/RB 5.24 From sunshine at public.kherson.ua Sun Jan 25 10:29:31 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sun Jan 25 02:29:43 2004 Subject: Select Max question In-Reply-To: Message-ID: on 1/25/04 8:32 AM, Keith DeLong at delong@redcort.com wrote: > My lack of SQL knowledge is frustrating me tonight...again. I cannot figure > out how to get the latest entry for each person in a table. > > I started with: > > SELECT Max(Date_Entered) > FROM Matters > > As expected, this returns the last entry made in the date. > However, I want the last entry for each person. So I next tried to get the > max for a given person: If you need FOR EACH, you need GROUP BY > SELECT Max(Date_Entered) > FROM Matters > Where Person_ID = 4 > > I got the same result as above. After some experimentation it seems > Valentina is ignoring the WHERE clause all together when Max is used. This > seems also true for Distinct. Is this the normal way for SQL to work or a > Valentina oddity? > > Is there is a query solution that I am missing at this late hour of a long > week? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From K.Klamp at t-online.de Sun Jan 25 09:38:47 2004 From: K.Klamp at t-online.de (Kurt Klamp) Date: Sun Jan 25 02:34:02 2004 Subject: Select Max question Message-ID: <1Akfi7-0ilOca0@fwd07.sul.t-online.com> Keith DeLong wrote at 25.01.2004 7:32 Uhr >SELECT Max(Date_Entered) >FROM Matters >Where Person_ID = 4 > >I got the same result as above. After some experimentation it seems >Valentina is ignoring the WHERE clause all together when Max is used. This >seems also true for Distinct. Is this the normal way for SQL to work or a >Valentina oddity? > >Is there is a query solution that I am missing at this late hour of a long >week? Hi Keith, i had the same problem. the following should work: SELECT Person_ID, Max(Date_Entered) FROM Matters Group by Person_ID i think there must be a use of group by when using a aggregate function. Best, Kurt From valentina at brainchild.nl Sun Jan 25 10:33:04 2004 From: valentina at brainchild.nl (Richard Altenburg) Date: Sun Jan 25 03:33:48 2004 Subject: [V4RB] ReadOnly Cursor doesn't need to lock records, does it? In-Reply-To: Message-ID: On 25-01-2004 02:40, "Dave Parizek" wrote: >>> So does ReadOnly on a Cursor mean that all records in it are ReadOnly for >>> others? > Yes, above is correct. You will need use no locks, or not have > simultaneous cursors. It confused me a lot too. It does not make much sense to me, because in 4D for example, when you create something in a ReadOnly state, it means you won't write to it, so others can happily go ahead and change the records. I have to be aware of this difference all the time, so it will surprise me some more in the future, I guess. >>> So I will try NoLocks, because I do need a Cursor that has all records in >> it, and several other cursors that handle other tasks. > Yes, just keep in mind of course that data could be changing and the > nolock cursors may not realize it. OK, but in my program, which is single-user, I control any changes to this particular data, so my software will refresh the NoLock Cursor whenever appropriate. Thanks for warning me. -- Richard Altenburg Brainchild Picture Patrol From delong at redcort.com Sun Jan 25 07:43:35 2004 From: delong at redcort.com (Keith DeLong) Date: Sun Jan 25 09:43:41 2004 Subject: Select Max question In-Reply-To: <1Akfi7-0ilOca0@fwd07.sul.t-online.com> Message-ID: > Keith DeLong wrote at 25.01.2004 7:32 Uhr > >> SELECT Max(Date_Entered) >> FROM Matters >> Where Person_ID = 4 >> >> I got the same result as above. After some experimentation it seems >> Valentina is ignoring the WHERE clause all together when Max is used. This >> seems also true for Distinct. Is this the normal way for SQL to work or a >> Valentina oddity? >> >> Is there is a query solution that I am missing at this late hour of a long >> week? > Hi Keith, > > i had the same problem. the following should work: > > SELECT Person_ID, Max(Date_Entered) > FROM Matters > Group by Person_ID > > i think there must be a use of group by when using a aggregate function. > > Best, > Kurt Hi Kurt, I actually has tried using Group By and it yielded the same single max record. Could this be because Person_ID is an object pointer to Person table? The only reference I have in the Matters table to Person is an object pointer. ... ??? Keith From delong at redcort.com Sun Jan 25 07:49:31 2004 From: delong at redcort.com (Keith DeLong) Date: Sun Jan 25 09:49:41 2004 Subject: Select Max question In-Reply-To: <1Akfi7-0ilOca0@fwd07.sul.t-online.com> Message-ID: > Keith DeLong wrote at 25.01.2004 7:32 Uhr > >> SELECT Max(Date_Entered) >> FROM Matters >> Where Person_ID = 4 >> >> I got the same result as above. After some experimentation it seems >> Valentina is ignoring the WHERE clause all together when Max is used. This >> seems also true for Distinct. Is this the normal way for SQL to work or a >> Valentina oddity? >> >> Is there is a query solution that I am missing at this late hour of a long >> week? > Hi Keith, > > i had the same problem. the following should work: > > SELECT Person_ID, Max(Date_Entered) > FROM Matters > Group by Person_ID > > i think there must be a use of group by when using a aggregate function. > > Best, > Kurt Hi Kurt, I actually has tried using Group By and it yielded the same single max record. Could this be because Person_ID is an object pointer to Person table? The only reference I have in the Matters table to Person is an object pointer. ... ??? Keith Ahh wait... I think clearer after some sleep! This does work: SELECT max(Date-Entered) from Maters, Persons group by Person_ID It appears the object pointer requires the second table to be included. Thanks Kurt and Ruslan, Keith From rwc1717 at shaw.ca Sun Jan 25 10:09:00 2004 From: rwc1717 at shaw.ca (Chuck) Date: Sun Jan 25 12:13:59 2004 Subject: Database works on 4.5.2 Message-ID: <0HS200L3I52IEK@l-daemon> Hi Ruslan: I have changed the programming to mimic you by using the BaseObject methods. I have stored the RecID from database record in a field in my listbox. Then... Dim i as integer i = val(Listbox1.cell(listbox1.Listindex,4)) res= mDb.mA.GoToRecID(i) if res= true then res= mDb.mA.DeleteRecord if res = true then msgbox "work" end if end if The first boolean varaible tests true ie: the debugger goes into the next if...then...else loop ...it finds the record:-). However the second res value does not and the record is not deleted. I have tried inserting mDb.mA.Flush but there is no difference in the outcome. Moreover,. I can extract the field information values and display them. ie: editrfield1.text = mDb.ma.Datefield.Value+mDb.ma.Decsript.Fd.Value.. Wierder than wierd...stranger than strange....an X-File or what? Thanks Chuck...any other ideas? From sunshine at public.kherson.ua Sun Jan 25 21:31:40 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sun Jan 25 13:31:48 2004 Subject: Database works on 4.5.2 In-Reply-To: <0HS200L3I52IEK@l-daemon> Message-ID: on 1/25/04 5:09 PM, Chuck at rwc1717@shaw.ca wrote: > Hi Ruslan: > I have changed the programming to mimic you by using the BaseObject > methods. > I have stored the RecID from database record in a field in my listbox. > Then... > Dim i as integer > > i = val(Listbox1.cell(listbox1.Listindex,4)) > res= mDb.mA.GoToRecID(i) > if res= true then > res= mDb.mA.DeleteRecord > if res = true then > msgbox "work" > end if > end if > The first boolean varaible tests true ie: the debugger goes into the next > if...then...else loop ...it finds the record:-). > However the second res value does not and the record is not deleted. I have > tried inserting mDb.mA.Flush but there is no difference in the outcome. Flush is not an issue here > Moreover,. I can extract the field information values and display them. > ie: editrfield1.text = mDb.ma.Datefield.Value+mDb.ma.Decsript.Fd.Value.. > > Wierder than wierd...stranger than strange....an X-File or what? Hi Chuck, I wonder, if you have see my last letter. ------------ I think problem NOT in RB 4.5.2 or 5.x As I see you have forget specify LockParameters in the cursor > rs = mDB.SQLSelect("select * from active where id ='"uid"'") ^^^^^^^^^^^^^^^^^^^^^^^^^ Please read docs on this function SQLSelect --------------------------- Or do you want point that you cannot delete record using BaseObject API also, as well as via cursor? Then may be your table have ObjectPtr which have parameter "RESTRICT" ? Try delete that record in VAPP. And I am not very clear see your problem. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From rwc1717 at shaw.ca Sun Jan 25 11:53:22 2004 From: rwc1717 at shaw.ca (Chuck) Date: Sun Jan 25 13:55:11 2004 Subject: Database works on 4.5.2 Message-ID: <0HS2007AL9WDW4@l-daemon> Hi Ruslan: Glad to hear it is me not RB 5.x or Valentina. However, my statements never set my VCursor to ReadOnly = true (isn't the default False?) which would be why they fine work in 4.5.2. Does RB 5.0 need me to set this to False? I have looked @ Lock, NoLock, LockParameters, Lock, Parameters and there is nothing in the pdf files: V4RBReference or ValentinaSQL. Just the ReadOnly setting in the VCursor Class. I have checked my SQLSelect statements and they look exactly like yours as they appear in V4RBReference.pdf Class VCursor V4RBR-61 I agree that for the VCursor object is locked and will not allow me to update or delete records....but how did it get that way and why only in RB 5.x and not 4.5.2? Is there another version of Valentina that resolves this. I am using 1.9.7, I believe. Thanks Chuck From sunshine at public.kherson.ua Mon Jan 26 11:08:51 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Jan 26 03:09:04 2004 Subject: Database works on 4.5.2 In-Reply-To: <0HS2007AL9WDW4@l-daemon> Message-ID: on 1/25/04 6:53 PM, Chuck at rwc1717@shaw.ca wrote: > Hi Ruslan: > Glad to hear it is me not RB 5.x or Valentina. > > However, my statements never set my VCursor to ReadOnly = true (isn't the > default False?) which would be why they fine work in 4.5.2. Does RB 5.0 need > me to > set this to False? > > I have looked @ Lock, NoLock, LockParameters, Lock, Parameters and there > is nothing in the pdf files: V4RBReference or ValentinaSQL. Just the ReadOnly > setting in the VCursor Class. > > I have checked my SQLSelect statements and they look exactly like yours as > they appear in V4RBReference.pdf Class VCursor V4RBR-61 > > I agree that for the VCursor object is locked and will not allow me to update > or > delete records....but how did it get that way and why only in RB 5.x and not > 4.5.2? > > Is there another version of Valentina that resolves this. I am using 1.9.7, I > believe. Hi Chuck, So you use old 1.9.7 version. It do not have lock parameters in the SqlSelect(). And I think you still have old docs related to 1.9.7. Note, that we have not 1.10, and docs are updated. Examples also. Then I really do not see what problem you can have with 1.9.7. May be only that 1.9.7 can glitches on Panther, btw. And I do not see reason, why RB versions change something. Check, if you can, switch to 1.10 Valentina. If no then we need investigate more your problem. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From erichg at mcmm.com Mon Jan 26 10:56:51 2004 From: erichg at mcmm.com (Erich Geiersberger) Date: Mon Jan 26 03:57:18 2004 Subject: [VServer] Mac error -43 Message-ID: Hi Ruslan, any idea why I get an error -43 on Mac OSX 10.2.4 when I try to open my server database? The same DB works fine on PC. I also tried to unregister the DB with VServer Xtra (worked) and register it again. Same error. My installation is fairly standard, i.e. in a "ValentinaServer" folder in "Library". The databse folder is named "Databases" while the path entry reads "databses\vaethoel.vdb" since you told me to use small caps. Using "Databses\vaethoel.vdb" makes no difference. Server Kernel is 2.0a55. Does this Kernel need OSX 10.3? Erich From sunshine at public.kherson.ua Mon Jan 26 12:40:36 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Jan 26 04:40:43 2004 Subject: [VServer] Mac error -43 In-Reply-To: Message-ID: on 1/26/04 11:56 AM, Erich Geiersberger at erichg@mcmm.com wrote: Hi Erich, > any idea why I get an error -43 on Mac OSX 10.2.4 when I try to open > my server database? > The same DB works fine on PC. -43 fnfErr File not found; Folder not found; Edition container not found; Target not found May be your db is not registered to masterdb on MAC? Or you have wrong path? > I also tried to unregister the DB with VServer Xtra (worked) and > register it again. Same error. My installation is fairly standard, > i.e. in a "ValentinaServer" folder in "Library". The databse folder > is named "Databases" while the path entry reads > "databses\vaethoel.vdb" since you told me to use small caps. > Using "Databses\vaethoel.vdb" makes no difference. Stop server And open masterdb in Vstidio or VAPP. Compare path to masterdb, And to your db. > Server Kernel is 2.0a55. > Does this Kernel need OSX 10.3? I do not think so. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From rwc1717 at shaw.ca Mon Jan 26 09:47:13 2004 From: rwc1717 at shaw.ca (Chuck) Date: Mon Jan 26 11:55:27 2004 Subject: Database works on 4.5.2 Message-ID: <0HS30063FYQ4T4@l-daemon> Hi Ruslan: I have downloaded the Valentina_RB_sit.bin file and I have downloaded a newer copy of V4RBReference and ValentinaSQL pdf files and the new VAPP. I have found the... .... inLockType reference to the in the SQLExecute statement and related to the VCursor. That would appear to solve the first example that I sent you.. I search the database using....for a record rs as VCursor res as Boolean rs = Nil rs = mDB.SQLSelect("select * from active where id ='"uid"'",kV_Server, kV_NoLocks, kV_Random) if rs.recordcount > 0 then res = rs.delete end if mDb.Flush or instead of deleting I try to use the following method for updating..... rs.Field("dateset").SetString("an edited date") rs.Field("descript").SetString("an edited message) rs.Field("aptime").SetString("an edited time") rs.Filed("id").SetString("old id number") res= rs.Update mDb.Flush I have updated all my SQLStatements. Thanks...(I had also mixed your 1.98 Plugin with the older ValentinaUtitlities Class). All straightened out now. However, I like the function of the GetRecID and GoToRecID but am confused as to to make all my VObjectPTR (s) in all my Tables have the same ability as the VCursor (s) do. I have managed to kill RB5 a few time...so I thought I should ask. VAPP can delete it but my program can't. To remind you.. Dim i as integer i = val(Listbox1.cell(listbox1.Listindex,4)) res= mDb.mA.GoToRecID(i) if res= true then res= mDb.mA.DeleteRecord if res = true then msgbox "work" end if end if From sunshine at public.kherson.ua Mon Jan 26 20:17:17 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Jan 26 12:17:25 2004 Subject: Database works on 4.5.2 In-Reply-To: <0HS30063FYQ4T4@l-daemon> Message-ID: on 1/26/04 4:47 PM, Chuck at rwc1717@shaw.ca wrote: Hi Chuck, > I have updated all my SQLStatements. Thanks...(I had also mixed your 1.98 > Plugin with the older ValentinaUtitlities Class). All straightened out now. Good. > However, I like the function of the GetRecID and GoToRecID but am confused as > to to make all my VObjectPTR (s) in all my Tables have the same ability as the > VCursor (s) do. I have managed to kill RB5 a few time...so I thought I should > ask. VAPP can delete it but my program can't. > > To remind you.. > Dim i as integer > i = val(Listbox1.cell(listbox1.Listindex,4)) > res= mDb.mA.GoToRecID(i) > if res= true then > res= mDb.mA.DeleteRecord > if res = true then > msgbox "work" > end if > end if NOTE: 1) you try to use BaseObject API. this is not very good if you think ever switch to multi-user. 2) you get false, yes? Reason can be: -- you have OTHER cursor with ReadOnly or ReadWrite lock on THIS record, So record cannot be deleted -- IT IS LOCKED. -- on the other hand I see that you use NoLocks. Does all your cursors use NoLock? If yes, then above reason seems to be NOT a problem. Then only I can think about is that your ObjectPtr have RESTRICT flag. But then VAPP also should not delete that record. I am in wonder. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From gregkowalski at earthlink.net Mon Jan 26 17:16:44 2004 From: gregkowalski at earthlink.net (Greg Kowalski) Date: Mon Jan 26 16:14:53 2004 Subject: blob question Message-ID: Hi, I have a database with 30.000 records. Two fields contain strings with an average of 3000 characters so I made them blob fields (does that makes sense?). The the thing is that .blb file that is created weighs 270 MB. Does that sound right? Thanks for your input Greg From sunshine at public.kherson.ua Tue Jan 27 00:34:11 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Jan 26 16:34:18 2004 Subject: blob question In-Reply-To: Message-ID: on 1/27/04 12:16 AM, Greg Kowalski at gregkowalski@earthlink.net wrote: Hi Greg, > I have a database with 30.000 records. Two fields contain strings with an > average of 3000 characters so I made them blob fields (does that makes > sense?). Do you mean that EACH record have 2 strings which in average are 3000 bytes each? Yes, I think TEXT is good choice then. Set segment size 1000 bytes. > The the thing is that .blb file that is created weighs 270 MB. Does that > sound right? 3000 * 2 * 30,000 = 180MB. You have 270 extra. May be you have choose to big segment size for BLOBs. Try less -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From rwc1717 at shaw.ca Mon Jan 26 17:06:52 2004 From: rwc1717 at shaw.ca (Chuck) Date: Mon Jan 26 19:16:10 2004 Subject: Database works in 4.5.2 Message-ID: <0HS400I0YJ2TEV@l-daemon> Hi Ruslan: ....and now in RB 5.4.2 I just needed a walk in the park....all the pointers are in place and I can set them as I wish. Either to unlock the cursor record (w/SQLSelect) or the table record (w/ptr set Nullable) Thanks... I must look through the new stuff. Thanks again Chuck From jcollett at ihug.co.nz Tue Jan 27 03:40:23 2004 From: jcollett at ihug.co.nz (John Collett) Date: Mon Jan 26 21:40:24 2004 Subject: V4RB and Import Message-ID: I am the John Collett who wrote a simple introductory tutorial for V4RB. I was using REALbasic v.4.0.2 when I wrote it, and everything in the tutorial worked in that version. When I upgraded to RB v.5.2.1 I found one trivial correction was needed. A button which I had called "Log" had to have a name change because "Log" is a reserved word. It didn't matter in the earlier version. The one and only communication I have received from anybody about the tutorial was to tell me about this small problem. He had solved it by changing "Log" to "Alog". I recently decided that I ought to return to the tutorial and check it through. To my dismay I find that the "Import" button doesn't work in RB v.5.2.1. I checked around. I find the Import buttons do work in the supplied "(1) Single table" in RB v.5.2.1, and in my V4RB tutorial in RB v.4.0.2. I have spent hours trying to work out why it won't work in my V4RB tutorial in RB v.5.2.1, and find no solution. Can anyone help, please? -- Regards, John ---------------------------------------------------------- John Collett 54, Cambridge Rd, Hillcrest, Hamilton, NZ email : jcollett@ihug.co.nz Ph: (07) 8564578 From sunshine at public.kherson.ua Tue Jan 27 10:04:38 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Jan 27 02:04:48 2004 Subject: [VServer] NT4 error 10093 In-Reply-To: <008a01c3e4ab$25539100$771026c3@giv> Message-ID: on 1/27/04 9:56 AM, Igor Gomon at giv@tlc.kherson.ua wrote: >> I did this since I found no possibility in Vserver Xtra to check for >> a users password. >> >> On error check during login, I wanted to give feedback to the user >> depending on one of the following states: >> - user name ok but password wrong -> alert and try again >> - user name not found -> send him to a "register new user" screen Okay, I see. >> These options are hard to track with the current error codes, since >> in both cases I get error 1005 if something is wrong. >> The only thing I can do now, is to let the user decide what's right. >> If there was a possibility to compare BOTH user name and password, >> the login process would get more user friendly. > Maybe we need to add some function to VServer Xtra - like > IsUserExists(string inUserName); > ??? > Ruslan? YES! So we need give to Vserver Xtra (i.e. administrator) Ability to check: IsUserExists( user ) Then Erich will be able do what he want. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From r.hildebrandt at sbt.fr Tue Jan 27 10:15:38 2004 From: r.hildebrandt at sbt.fr (Roland Hildebrandt) Date: Tue Jan 27 04:15:06 2004 Subject: V4MD 1.10 Message-ID: <004401c3e4b6$20fa20f0$3a01a8c0@sbt> Hi all, We have been using valentina for director for over a year (version 1.9.6.) for CD-Rom projects. We now have three recurrent problems which I want to post to know if someone has any ideas : ******************************* Problem 1 : Using Xtra 1.10 or 1.9.8. When importing data into a text field of an encrypted database, everything works fine the first time until we close the database. When we reopen the database every new insert will insert no data into the text field(s). The database diagnose gives the following problems for the text field(s) : Block 6 has wrong mIndex must be 1 in fact 0. Reindexing database doesn't solve the problem. When using a non crypted database the problem doesn't appear. When using a long varchar field (4000+) instead of text everything works fine even when the database is crypted. But the documentation says this is not optimal for long strings. ********************************** Problem 2 : When importing a lot of data we use importascii from a delimited text file. This seems to be much faster than any other method. Using Xtra 1.10. The import fails (?!) if there is a varchar field in the table more than 511 characters long. There is no error message and the database diagnose displays no error. In fact nothing happens, no line is added in the table. The problem appears with a crypted and a non crypted database. When replacing all varchars longer than 511 characters by text fields, everything works fine. Using Xtra 1.9.8 Suprisingly everything works fine even with crypted database and long varchars. ********************************** Problem 3 : When creating a database and inserting data, we quickly get this message for a lot of fields when we make a database diagnose : (!) Table has 6 physical records but field has 256 This creates no problems when using the database but we don't understand this message. It make it also more difficult to detect if the database is corrupted because there are always problems found when we call Database diagnose. Thanks a lot for any ideas SBT / HAPPYneuron Roland HILDEBRANDT From sunshine at public.kherson.ua Tue Jan 27 12:24:37 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Jan 27 04:24:48 2004 Subject: V4MD 1.10 In-Reply-To: <004401c3e4b6$20fa20f0$3a01a8c0@sbt> Message-ID: on 1/27/04 11:15 AM, Roland Hildebrandt at r.hildebrandt@sbt.fr wrote: Hi Roland, > ******************************* > Problem 1 : > > Using Xtra 1.10 or 1.9.8. > When importing data into a text field of an encrypted database, everything > works fine the first time until we close the database. > When we reopen the database every new insert will insert no data into the text > field(s). > > The database diagnose gives the following problems for the text field(s) : > Block 6 has wrong mIndex must be 1 in fact 0. > Reindexing database doesn't solve the problem. > > When using a non crypted database the problem doesn't appear. Sounds like a bug. :-( > When using a long varchar field (4000+) instead of text everything works fine > even when the database is crypted. But the documentation says this is not > optimal for long strings. Only from point of RAM usage. You will have 8KB pages. I think not big problem on modern computer -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Tue Jan 27 12:26:51 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Jan 27 04:26:56 2004 Subject: V4MD 1.10 In-Reply-To: <004401c3e4b6$20fa20f0$3a01a8c0@sbt> Message-ID: on 1/27/04 11:15 AM, Roland Hildebrandt at r.hildebrandt@sbt.fr wrote: > Problem 3 : > > When creating a database and inserting data, we quickly get this message for a > lot of fields when we make a database diagnose : > > (!) Table has 6 physical records but field has 256 > > This creates no problems when using the database but we don't understand this > message. IF this is a Boolean field, then Diagnose is WRONG. > It make it also more difficult to detect if the database is corrupted because > there are always problems found when we call Database diagnose. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Tue Jan 27 12:27:31 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Jan 27 04:27:35 2004 Subject: V4MD 1.10 In-Reply-To: <004401c3e4b6$20fa20f0$3a01a8c0@sbt> Message-ID: on 1/27/04 11:15 AM, Roland Hildebrandt at r.hildebrandt@sbt.fr wrote: > Problem 2 : > > When importing a lot of data we use importascii from a delimited text file. > This seems to be much faster than any other method. > > Using Xtra 1.10. > > The import fails (?!) if there is a varchar field in the table more than 511 > characters long. There is no error message and the database diagnose displays > no error. In fact nothing happens, no line is added in the table. The problem > appears with a crypted and a non crypted database. > > When replacing all varchars longer than 511 characters by text fields, > everything works fine. > > > Using Xtra 1.9.8 > > Suprisingly everything works fine even with crypted database and long > varchars. Let me repeat: IF table have e.g. VarChar field with length e.g. 700 then import totally fails? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From erichg at mcmm.com Tue Jan 27 13:11:17 2004 From: erichg at mcmm.com (Erich Geiersberger) Date: Tue Jan 27 06:11:53 2004 Subject: [VServer] Mac error -43 In-Reply-To: References: Message-ID: >Hi Erich, > > > any idea why I get an error -43 on Mac OSX 10.2.4 when I try to open > > my server database? > > The same DB works fine on PC. > >-43 fnfErr File not found; Folder not found; Edition container not > found; Target not found > >May be your db is not registered to masterdb on MAC? > >Or you have wrong path? > > > > I also tried to unregister the DB with VServer Xtra (worked) and > > register it again. Same error. My installation is fairly standard, > > i.e. in a "ValentinaServer" folder in "Library". The databse folder > > is named "Databases" while the path entry reads > > "databses\vaethoel.vdb" since you told me to use small caps. > > Using "Databses\vaethoel.vdb" makes no difference. > >Stop server >And open masterdb in Vstidio or VAPP. > >Compare path to masterdb, >And to your db. > > > Server Kernel is 2.0a55. > > Does this Kernel need OSX 10.3? > >I do not think so. The problem persist. I have meanwhile: - upgraded to OSX 10.2.8 - Rebuilt and reindexed the database - registered an unencrypted version with the same path as master.vdb, i.e. "Databases\vaethoel.vdb" instead of "databases\vaethoel.vdb" (on PC with the new version of VStudio) - replaced the unencrypted version with the one with structure encryption - built a new installer Tested the whole thing on PC, read, write, client access, all. Worked well. I can install the database on my Mac, the service is running, but the first time I try to open my database I get error -43 on opendatabase(). Erich From sunshine at public.kherson.ua Tue Jan 27 14:28:16 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Jan 27 06:28:27 2004 Subject: [VServer] Mac error -43 In-Reply-To: Message-ID: on 1/27/04 2:11 PM, Erich Geiersberger at erichg@mcmm.com wrote: > The problem persist. > > I have meanwhile: > - upgraded to OSX 10.2.8 > - Rebuilt and reindexed the database > - registered an unencrypted version with the same path as master.vdb, i.e. > "Databases\vaethoel.vdb" instead of "databases\vaethoel.vdb" (on PC > with the new version of VStudio) STOP. Do you mean that you move from PC to MAC the masterdb also ? If yes, this will not works, Because on MAC paths differ! "Databases:vaethoel.vdb" > - replaced the unencrypted version with the one with structure encryption > - built a new installer > > Tested the whole thing on PC, read, write, client access, all. Worked well. > > I can install the database on my Mac, the service is running, but the > first time I try to open my database I get error -43 on > opendatabase(). -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From kevin at mmcr.co.uk Tue Jan 27 12:48:03 2004 From: kevin at mmcr.co.uk (Kevin Boyd - MMCR) Date: Tue Jan 27 06:48:13 2004 Subject: Importing an Access file In-Reply-To: Message-ID: <003301c3e4d3$ceaf4050$370f6551@local> My first post here as I am new to Valentina, using it with Director. So I have an Access database with 11 tables in it. Am I right in thinking I have to write code to generate a Valentina database file with all 11 tables defined, along with their relationships and then use the ODBC_Valentina.exe to import the Access file into my code created Valentina file? Is there a way of automating this? KB From sunshine at public.kherson.ua Tue Jan 27 14:53:41 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Jan 27 06:54:12 2004 Subject: Importing an Access file In-Reply-To: <003301c3e4d3$ceaf4050$370f6551@local> Message-ID: on 1/27/04 2:48 PM, Kevin Boyd - MMCR at kevin@mmcr.co.uk wrote: > My first post here as I am new to Valentina, using it with Director. > > So I have an Access database with 11 tables in it. Am I right in thinking I > have to write code to generate a Valentina database file with all 11 tables > defined, along with their relationships and then use the ODBC_Valentina.exe > to import the Access file into my code created Valentina file? Yes Kevin, > Is there a way of automating this? Right now no. Upcoming Valentina Studio will replace ODBC utility. Vstudio already can do ODBC import. And it must add feature -- create tables. Not implemented yet. Yes Jochen? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From kevin at mmcr.co.uk Tue Jan 27 13:24:19 2004 From: kevin at mmcr.co.uk (Kevin Boyd - MMCR) Date: Tue Jan 27 07:24:50 2004 Subject: Importing an Access file In-Reply-To: Message-ID: <003f01c3e4d8$ebaf50f0$370f6551@local> Thx for letting me know! When will Valentina Studio be available from? -----Original Message----- From: valentina-bounces@lists.macserve.net [mailto:valentina-bounces@lists.macserve.net] On Behalf Of Ruslan Zasukhin Sent: 27 January 2004 12:54 To: valentina@lists.macserve.net; Jochen Peters Subject: Re: Importing an Access file on 1/27/04 2:48 PM, Kevin Boyd - MMCR at kevin@mmcr.co.uk wrote: > My first post here as I am new to Valentina, using it with Director. > > So I have an Access database with 11 tables in it. Am I right in > thinking I have to write code to generate a Valentina database file > with all 11 tables defined, along with their relationships and then > use the ODBC_Valentina.exe to import the Access file into my code > created Valentina file? Yes Kevin, > Is there a way of automating this? Right now no. Upcoming Valentina Studio will replace ODBC utility. Vstudio already can do ODBC import. And it must add feature -- create tables. Not implemented yet. Yes Jochen? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- _______________________________________________ Valentina mailing list Valentina@lists.macserve.net http://lists.macserve.net/mailman/listinfo/valentina From sunshine at public.kherson.ua Tue Jan 27 15:28:30 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Jan 27 07:29:31 2004 Subject: Importing an Access file In-Reply-To: <003f01c3e4d8$ebaf50f0$370f6551@local> Message-ID: on 1/27/04 3:24 PM, Kevin Boyd - MMCR at kevin@mmcr.co.uk wrote: > Thx for letting me know! > > When will Valentina Studio be available from? It is in betas now You can subscribe to beta testing. Link on our home page -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From maxprog at mac.com Tue Jan 27 14:34:40 2004 From: maxprog at mac.com (Stan Busk) Date: Tue Jan 27 07:34:53 2004 Subject: VvarChar vs VText (Speed and size) Message-ID: <8F27DF9A-50CD-11D8-B8A4-000A95C377AA@mac.com> Hi, I need to store text chunks from 0 to 256 characters but average is about 32 up to 64. Currently I use a VvarChar of 256 but I am planning to replace it with a VText of 32 to get smaller files but I wonder whether I will get some speed degradations as I will store thousands of those chunks. Also I wonder if there are some drawback for using VText in place of VvarChar. TIA, Stan From erichg at mcmm.com Tue Jan 27 14:41:55 2004 From: erichg at mcmm.com (Erich Geiersberger) Date: Tue Jan 27 07:42:22 2004 Subject: [VServer] Mac error -43 In-Reply-To: References: Message-ID: > > The problem persist. > > > > I have meanwhile: > > - upgraded to OSX 10.2.8 > > - Rebuilt and reindexed the database > > > - registered an unencrypted version with the same path as master.vdb, i.e. > > "Databases\vaethoel.vdb" instead of "databases\vaethoel.vdb" (on PC > > with the new version of VStudio) > >STOP. > >Do you mean that you move from PC to MAC the masterdb also ? > >If yes, this will not works, >Because on MAC paths differ! > > "Databases:vaethoel.vdb" Bingo! Not too obvious though, since the PC only shows the short path... Next problem: V4MD_Carbon_Client.Xtra crashes on opensession() on Mac OS 10.2.x The december version does not. Both versions show 2.0a50 in info window december version is of 22th december 03 new version is of 14th january 04 Is it safe to use the old version? Erich From kevin at mmcr.co.uk Tue Jan 27 13:57:48 2004 From: kevin at mmcr.co.uk (Kevin Boyd - MMCR) Date: Tue Jan 27 07:58:06 2004 Subject: Importing an Access file In-Reply-To: Message-ID: <004001c3e4dd$93f5f120$370f6551@local> OK I can create my fields with addfield but how to I specify which fields should be a key or index field and then how do I build the relationship between tables? Is there a tutorial on all this you can point me to? TIA -----Original Message----- From: valentina-bounces@lists.macserve.net [mailto:valentina-bounces@lists.macserve.net] On Behalf Of Ruslan Zasukhin Sent: 27 January 2004 13:29 To: valentina@lists.macserve.net Subject: Re: Importing an Access file on 1/27/04 3:24 PM, Kevin Boyd - MMCR at kevin@mmcr.co.uk wrote: > Thx for letting me know! > > When will Valentina Studio be available from? It is in betas now You can subscribe to beta testing. Link on our home page -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- _______________________________________________ Valentina mailing list Valentina@lists.macserve.net http://lists.macserve.net/mailman/listinfo/valentina From sunshine at public.kherson.ua Tue Jan 27 15:57:30 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Jan 27 08:03:18 2004 Subject: VvarChar vs VText (Speed and size) In-Reply-To: <8F27DF9A-50CD-11D8-B8A4-000A95C377AA@mac.com> Message-ID: on 1/27/04 3:34 PM, Stan Busk at maxprog@mac.com wrote: Hi Stan, > I need to store text chunks from 0 to 256 characters but average is > about 32 up to 64. Currently I use a VvarChar of 256 but I am planning > to replace it with a VText of 32 to get smaller files but I wonder > whether I will get some speed degradations as I will store thousands of > those chunks. Also I wonder if there are some drawback for using VText > in place of VvarChar. No sense. 1) smallest segment for BLOB/TEXT is 128 bytes 2) VarChar 256 is perfect -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Tue Jan 27 16:11:21 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Jan 27 08:20:51 2004 Subject: [VServer] Mac error -43 In-Reply-To: Message-ID: on 1/27/04 3:41 PM, Erich Geiersberger at erichg@mcmm.com wrote: >>> The problem persist. >>> >>> I have meanwhile: >>> - upgraded to OSX 10.2.8 >>> - Rebuilt and reindexed the database >> >>> - registered an unencrypted version with the same path as master.vdb, i.e. >>> "Databases\vaethoel.vdb" instead of "databases\vaethoel.vdb" (on PC >>> with the new version of VStudio) >> >> STOP. >> >> Do you mean that you move from PC to MAC the masterdb also ? >> >> If yes, this will not works, >> Because on MAC paths differ! >> >> "Databases:vaethoel.vdb" > > Bingo! > Not too obvious though, since the PC only shows the short path... Erich, I think you should not move masterdb from one computer to other. And you should not distribute it in general. Why you do this? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From erichg at mcmm.com Tue Jan 27 15:25:21 2004 From: erichg at mcmm.com (Erich Geiersberger) Date: Tue Jan 27 08:25:40 2004 Subject: [VServer] Mac error -43 In-Reply-To: References: Message-ID: I found it: It's not the Xtra. At least this OSX version does not accept its own IP address on opensession(). If I use "localhost" instead it works. But how do I get the own IP address from Director? My installer needs to know how to connect... Erich From sunshine at public.kherson.ua Tue Jan 27 16:15:52 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Jan 27 08:29:00 2004 Subject: Importing an Access file In-Reply-To: <004001c3e4dd$93f5f120$370f6551@local> Message-ID: on 1/27/04 3:57 PM, Kevin Boyd - MMCR at kevin@mmcr.co.uk wrote: > OK I can create my fields with addfield but how to I specify which fields > should be a key or index field and then how do I build the relationship > between tables? Valentina 1.x have INDEXED flag. You need use SetFlags() method to mark field to be indexed. I assume you ask about PRIMARY KEY and FOREIGN KEY relation? This features not present in Valentina 1.x. I mean you do not need mark fields in this way. Later you can in query do JOIN pointing related fields. IF you will use RecID + ObjectPtr fields, Then you get functionality of FOREIGN KEY: Cascade, RESTRICT, ... But since you need import Access data you cann ObjectTable so simply map them to ObjectPtr. You can AFTER import convert RDB links to ObjectPtr links. On the other hand, if you going put db on CD, I do not see many sense in FOREIG KEY. -- you will not delete records. > Is there a tutorial on all this you can point me to? Examples Have you read ValentinaKernel.pdf, Valentina SQL.pdf ? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Tue Jan 27 16:18:57 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Jan 27 08:37:36 2004 Subject: [VServer] Mac error -43 In-Reply-To: Message-ID: on 1/27/04 3:41 PM, Erich Geiersberger at erichg@mcmm.com wrote: > Next problem: V4MD_Carbon_Client.Xtra crashes on opensession() on Mac OS > 10.2.x > The december version does not. > Both versions show 2.0a50 in info window > december version is of 22th december 03 > new version is of 14th january 04 Strange. > Is it safe to use the old version? If it works... -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From erichg at mcmm.com Tue Jan 27 15:38:15 2004 From: erichg at mcmm.com (Erich Geiersberger) Date: Tue Jan 27 08:38:40 2004 Subject: [VServer] master.vdb In-Reply-To: References: Message-ID: >Erich, > >I think you should not move masterdb from one computer to other. >And you should not distribute it in general. >Why you do this? Then there seems to be a general lack of understanding on my side. I thought master.vdb is needed by Vserver application to keep track of the databases. If this is not the case, what do I need to do? Just add a "database" and "user" table to my own db? Nothing at all? Erich From sunshine at public.kherson.ua Tue Jan 27 16:45:57 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Jan 27 08:53:17 2004 Subject: [VServer] Mac error -43 In-Reply-To: Message-ID: on 1/27/04 4:25 PM, Erich Geiersberger at erichg@mcmm.com wrote: > I found it: > > It's not the Xtra. At least this OSX version does not accept its own > IP address on opensession(). > If I use "localhost" instead it works. > > But how do I get the own IP address from Director? > My installer needs to know how to connect... 1) I have not catch. IF you need connect to the same computer, then simply use LOCALHOST. 2) may be problem not in OSX but in settings of your computer? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Tue Jan 27 16:49:38 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Jan 27 08:58:21 2004 Subject: [VServer] master.vdb In-Reply-To: Message-ID: on 1/27/04 4:38 PM, Erich Geiersberger at erichg@mcmm.com wrote: >> Erich, >> >> I think you should not move masterdb from one computer to other. >> And you should not distribute it in general. >> Why you do this? > > Then there seems to be a general lack of understanding on my side. > I thought master.vdb is needed by Vserver application to keep track > of the databases. > > If this is not the case, what do I need to do? > > Just add a "database" and "user" table to my own db? > Nothing at all? What will do your app? How you want distribute it? Do you need distribute some pre-made database? If yes, then this db will be read only? ----- Even in last case you can: 1) by installer from CD install Vserver and install required YOUR dbs into Database folder. on first run Vserver self will create masterdb on that computer. 2) you can write in your code script that ONCE will check that YOUR dbs are not registered and register them. Erich, do not take my words as totally correct. Vserver is new thing. And we self discover yet what we can do with it :-) -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From erichg at mcmm.com Tue Jan 27 16:12:06 2004 From: erichg at mcmm.com (Erich Geiersberger) Date: Tue Jan 27 09:17:27 2004 Subject: [VServer] master.vdb In-Reply-To: References: Message-ID: > >> Erich, > >> > >> I think you should not move masterdb from one computer to other. > >> And you should not distribute it in general. > >> Why you do this? > > > > Then there seems to be a general lack of understanding on my side. > > I thought master.vdb is needed by Vserver application to keep track > > of the databases. > > > > If this is not the case, what do I need to do? > > > > Just add a "database" and "user" table to my own db? > > Nothing at all? > >What will do your app? Show some thousand records on medical plants and a lot more. Users can add data in differnt categories. >How you want distribute it? Sure (should have done it last week...) >Do you need distribute some pre-made database? >If yes, then this db will be read only? Yes, I need to distribute a premade database AND the user(s) can add data. > >----- >Even in last case you can: > >1) by installer from CD install Vserver > and install required YOUR dbs into Database folder. > > on first run Vserver self will create masterdb on that computer. > >2) you can write in your code script that ONCE will check that YOUR dbs are >not registered and register them. > > >Erich, do not take my words as totally correct. >Vserver is new thing. >And we self discover yet what we can do with it :-) Sure, I know. I know vserver will create a new one and I can register afterwards, but this involves a lot of additional scripts at least on OSX where I need to restart before I can register. Therefore the installer has already been stopped BEFORE i can register my DB. So I need to add code to the client installations. Is there somethiing basically wrong with my way of distributing a per-made master.vdb? I want to keep installer and applications as seperate parts. From erichg at mcmm.com Tue Jan 27 16:16:57 2004 From: erichg at mcmm.com (Erich Geiersberger) Date: Tue Jan 27 09:17:37 2004 Subject: [VServer] Mac error -43 In-Reply-To: References: Message-ID: > > I found it: > > > > It's not the Xtra. At least this OSX version does not accept its own > > IP address on opensession(). > > If I use "localhost" instead it works. > > > > But how do I get the own IP address from Director? > > My installer needs to know how to connect... > >1) I have not catch. IF you need connect to the same computer, > then simply use LOCALHOST. How do I know? How does my installer know if it is the same? In my installer, I could write: Please use "localhost" for local connections and the IP address for others, but I am sure the support will bug we for the next year if I do so. >2) may be problem not in OSX but in settings of your computer? Which settings? Erich From fb at memedia.de Tue Jan 27 16:34:59 2004 From: fb at memedia.de (Florian Bogeschdorfer) Date: Tue Jan 27 09:35:07 2004 Subject: AW: [VServer] Mac error -43 In-Reply-To: Message-ID: > > How do I know? > How does my installer know if it is the same? > > In my installer, I could write: Please use "localhost" for > local connections and the IP address for others, but I am > sure the support will bug we for the next year if I do so. > Erich, if this is an installer with one client on the same machine as server you can always use "localHost" no matter if you are connected to a network or not. If you install a client that will connect to the server on another machine you will need the IP of the server computer, so finding out the client's computer IP does not help. The customer will have to enter the IP of the server. Florian From sunshine at public.kherson.ua Tue Jan 27 18:20:11 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Jan 27 10:20:18 2004 Subject: [VServer] master.vdb In-Reply-To: Message-ID: on 1/27/04 5:12 PM, Erich Geiersberger at erichg@mcmm.com wrote: >> And we self discover yet what we can do with it :-) > > > Sure, I know. > > I know vserver will create a new one and I can register afterwards, > but this involves a lot of additional scripts at least on OSX where I > need to restart before I can register. > Therefore the installer has already been stopped BEFORE i can > register my DB. So I need to add code to the client installations. > Is there somethiing basically wrong with my way of distributing a > per-made master.vdb? Probably no. Just you need polish it. And then may be you need for MAC and PC 2 copies of masterdb > I want to keep installer and applications as seperate parts. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Tue Jan 27 18:23:08 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Jan 27 10:25:42 2004 Subject: [VServer] Mac error -43 In-Reply-To: Message-ID: on 1/27/04 5:16 PM, Erich Geiersberger at erichg@mcmm.com wrote: >>> I found it: >>> >>> It's not the Xtra. At least this OSX version does not accept its own >>> IP address on opensession(). >>> If I use "localhost" instead it works. >>> >>> But how do I get the own IP address from Director? >>> My installer needs to know how to connect... >> >> 1) I have not catch. IF you need connect to the same computer, >> then simply use LOCALHOST. > > How do I know? > How does my installer know if it is the same? Not clear. User take your CD with installer of Valentina Server, yes. Insert it into Server computer. Yes? Run installer. So you always need locoalhost. If you talk about CLIENT PART of your app, Then you MUST provide for USER a way tell which IP to connect. > In my installer, I could write: Please use "localhost" for local > connections and the IP address for others, but I am sure the support > will bug we for the next year if I do so. Totally not clear. Your installer try connect to Vserver ??? >> 2) may be problem not in OSX but in settings of your computer? > > Which settings? Control panel "Network" -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From erichg at mcmm.com Tue Jan 27 18:45:45 2004 From: erichg at mcmm.com (Erich Geiersberger) Date: Tue Jan 27 11:46:03 2004 Subject: [VServer] Mac error -43 In-Reply-To: References: Message-ID: > >>> It's not the Xtra. At least this OSX version does not accept its own > >>> IP address on opensession(). > >>> If I use "localhost" instead it works. > >>> > >>> But how do I get the own IP address from Director? > >>> My installer needs to know how to connect... > >> > >> 1) I have not catch. IF you need connect to the same computer, > >> then simply use LOCALHOST. > > > > How do I know? > > How does my installer know if it is the same? > >Not clear. > >User take your CD with installer of Valentina Server, yes. >Insert it into Server computer. Yes? >Run installer. >So you always need locoalhost. > >If you talk about CLIENT PART of your app, >Then you MUST provide for USER a way tell which IP to connect. The installer does all installs. On start the user selects what he wants to install, i.e. - server - client - or single place version Surely, the user must know the IP of his server for a server or client installation but I prefer to keep things as simple as possible. If he needs to enter "localhost" for the server and an IP for the clients, chances are that people will make faults. Since I am gathering information from existing installations during installation which will get lost after an update, I want to exclude all possible problems as far as possible. This thing will be handed out to Pharmacists and I already know them ;-) > > > In my installer, I could write: Please use "localhost" for local > > connections and the IP address for others, but I am sure the support > > will bug we for the next year if I do so. > >Totally not clear. > >Your installer try connect to Vserver ??? Yes. I need to write an Admin account, add global settings for all users gathered from existing installations, write expiry date and serial numbers etc. > > >> 2) may be problem not in OSX but in settings of your computer? > > > > Which settings? > >Control panel "Network" Everything is ok there. The machine is networked. It's working well in mixed Mac/PC environment. From valentina at panamind.com Tue Jan 27 13:01:18 2004 From: valentina at panamind.com (Gary Edge) Date: Tue Jan 27 11:59:04 2004 Subject: Saving jpegs Message-ID: What's the best way to save and retrieve a jpeg image from a table? Is this a good idea if I need to maintain a jpeg potentially for each record? Or should I store the image to file and store a the path to it? Best Regards, Gary -- From sunshine at public.kherson.ua Tue Jan 27 20:10:46 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Jan 27 12:10:56 2004 Subject: Saving jpegs In-Reply-To: Message-ID: on 1/27/04 8:01 PM, Gary Edge at valentina@panamind.com wrote: > What's the best way to save and retrieve a jpeg image from a table? Is > this a good idea if I need to maintain a jpeg potentially for each > record? Or should I store the image to file and store a the path to it? Hi Gary, You can store JPGs into Picture of Valentina with no problems. And yes, you can store it for each record. This not affect performance. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From fb at memedia.de Tue Jan 27 19:26:45 2004 From: fb at memedia.de (Florian Bogeschdorfer) Date: Tue Jan 27 12:26:49 2004 Subject: AW: [VServer] Mac error -43 In-Reply-To: Message-ID: > The installer does all installs. On start the user selects > what he wants to install, i.e. > - server > - client > - or single place version > > Surely, the user must know the IP of his server for a server > or client installation but I prefer to keep things as simple > as possible. If he needs to enter "localhost" for the server > and an IP for the clients, chances are that people will make faults. > > Since I am gathering information from existing installations > during installation which will get lost after an update, I > want to exclude all possible problems as far as possible. > This thing will be handed out to Pharmacists and I already > know them ;-) > You could by default use "localHost". Then ask for server IP or check for connection and if you don't get a connection ask for the server IP Florian From valentina at panamind.com Tue Jan 27 13:29:40 2004 From: valentina at panamind.com (Gary Edge) Date: Tue Jan 27 12:27:29 2004 Subject: Saving jpegs In-Reply-To: References: Message-ID: Hi Ruslan, So if pict is the jpg and c is the VCursor. Would I use: c.picturefield("fieldname").PutFormatted(kV_JPG,pict)? -- Best Regards, Gary -- On Jan 27, 2004, at 1:10 PM, Ruslan Zasukhin wrote: > on 1/27/04 8:01 PM, Gary Edge at valentina@panamind.com wrote: > >> What's the best way to save and retrieve a jpeg image from a table? Is >> this a good idea if I need to maintain a jpeg potentially for each >> record? Or should I store the image to file and store a the path to >> it? > > Hi Gary, > > You can store JPGs into Picture of Valentina with no problems. > > And yes, you can store it for each record. > This not affect performance. > > > > -- > Best regards, > Ruslan Zasukhin [ I feel the need...the need for speed ] > ------------------------------------------------------------- > e-mail: ruslan@paradigmasoft.com > web: http://www.paradigmasoft.com > > To subscribe to the Valentina mail list go to: > http://lists.macserve.net/mailman/listinfo/valentina > ------------------------------------------------------------- > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > From sunshine at public.kherson.ua Tue Jan 27 20:47:13 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Jan 27 12:47:21 2004 Subject: Saving jpegs In-Reply-To: Message-ID: on 1/27/04 8:29 PM, Gary Edge at valentina@panamind.com wrote: > Hi Ruslan, > > So if pict is the jpg and c is the VCursor. > > Would I use: > > c.picturefield("fieldname").PutFormatted(kV_JPG,pict)? Yes. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From r.hildebrandt at sbt.fr Tue Jan 27 14:14:39 2004 From: r.hildebrandt at sbt.fr (Roland Hildebrandt) Date: Tue Jan 27 15:14:17 2004 Subject: V4MD 1.10 References: Message-ID: <019201c3e4d7$852b39d0$3a01a8c0@sbt> Hi Ruslan ! It seems the problem depends of the type of field : Long : (!) Table has X physical records but field has 256 Byte : (!) Table has X physical records but field has 1024 Datetime: (!) Table has X physical records but field has 128 String : (!) Table has X physical records but field has (depend of string length) Float : (!) Table has X physical records but field has 256 Where X is the number of records created in the table. Varchar fields never has this problem. I think it will work all right for boolean fields but I haven't tested it. It seems this is linked with the segment size ??? In fact we use a quite small segment size : 1024 when creating our bases because we need them to use few disk space and we have a lot (often more than 50) of fields in each table. Thank a lot for all your answers !!! Best regards SBT / HAPPYneuron Roland HILDEBRANDT ----- Original Message ----- From: "Ruslan Zasukhin" To: Sent: Tuesday, January 27, 2004 11:26 AM Subject: Re: V4MD 1.10 > on 1/27/04 11:15 AM, Roland Hildebrandt at r.hildebrandt@sbt.fr wrote: > > > Problem 3 : > > > > When creating a database and inserting data, we quickly get this message for a > > lot of fields when we make a database diagnose : > > > > (!) Table has 6 physical records but field has 256 > > > > This creates no problems when using the database but we don't understand this > > message. > > IF this is a Boolean field, then Diagnose is WRONG. > > > It make it also more difficult to detect if the database is corrupted because > > there are always problems found when we call Database diagnose. > > > -- > Best regards, > Ruslan Zasukhin [ I feel the need...the need for speed ] > ------------------------------------------------------------- > e-mail: ruslan@paradigmasoft.com > web: http://www.paradigmasoft.com > > To subscribe to the Valentina mail list go to: > http://lists.macserve.net/mailman/listinfo/valentina > ------------------------------------------------------------- > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > From erichg at mcmm.com Wed Jan 28 01:01:09 2004 From: erichg at mcmm.com (Erich Geiersberger) Date: Tue Jan 27 18:06:09 2004 Subject: AW: [VServer] Mac error -43 In-Reply-To: References: Message-ID: >You could by default use "localHost". > >Then ask for server IP or check for connection and if you don't get a >connection ask for the server IP > >Florian Yep, this way round it seems to work. I also seem to get no crashes when asking for other IP addresses. It's only the own one. From r.hildebrandt at sbt.fr Tue Jan 27 14:28:14 2004 From: r.hildebrandt at sbt.fr (Roland Hildebrandt) Date: Tue Jan 27 22:33:13 2004 Subject: V4MD 1.10 References: Message-ID: <019601c3e4d9$6b2b93c0$3a01a8c0@sbt> Yes, if there is a varchar of 700 then importascii totally fails (nothing happens, no error message, but nothing in the table). ie. In fact we only tested importing for example a 600 character string into a 600 varchar. Maybe it works if you have a 600 varchar and import a 300 character string into it. Another important point : The import works fine even with 600 character string into 600 varchar using a standard SQL INSERT INTO. Thanks a lot !!! Best regards SBT / HAPPYneuron Roland HILDEBRANDT > > Problem 2 : > > > > When importing a lot of data we use importascii from a delimited text file. > > This seems to be much faster than any other method. > > > > Using Xtra 1.10. > > > > The import fails (?!) if there is a varchar field in the table more than 511 > > characters long. There is no error message and the database diagnose displays > > no error. In fact nothing happens, no line is added in the table. The problem > > appears with a crypted and a non crypted database. > > > > When replacing all varchars longer than 511 characters by text fields, > > everything works fine. > > > > > > Using Xtra 1.9.8 > > > > Suprisingly everything works fine even with crypted database and long > > varchars. > > Let me repeat: > > IF table have e.g. VarChar field with length e.g. 700 then import totally > fails? > > > -- > Best regards, > Ruslan Zasukhin [ I feel the need...the need for speed ] > ------------------------------------------------------------- > e-mail: ruslan@paradigmasoft.com > web: http://www.paradigmasoft.com > > To subscribe to the Valentina mail list go to: > http://lists.macserve.net/mailman/listinfo/valentina > ------------------------------------------------------------- > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > From fci at europa.com Tue Jan 27 20:50:08 2004 From: fci at europa.com (Lynn Fredricks) Date: Tue Jan 27 22:50:24 2004 Subject: Anyone Going to REALworld Conference? In-Reply-To: Message-ID: <002b01c3e55a$382bd580$0100000a@LYNNP42G> Howdy all, Any Valentina for REALbasic users planning on going to the REALworld conference? Best regards, Lynn Fredricks President Proactive International, LLC http://www.proactive-intl.com From sunshine at public.kherson.ua Wed Jan 28 10:40:50 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Jan 28 02:40:58 2004 Subject: V4MD 1.10 In-Reply-To: <019201c3e4d7$852b39d0$3a01a8c0@sbt> Message-ID: on 1/27/04 3:14 PM, Roland Hildebrandt at r.hildebrandt@sbt.fr wrote: > Hi Ruslan ! > > It seems the problem depends of the type of field : > > Long : (!) Table has X physical records but field has 256 > Byte : (!) Table has X physical records but field has 1024 > Datetime: (!) Table has X physical records but field has 128 > String : (!) Table has X physical records but field has (depend of string > length) > Float : (!) Table has X physical records but field has 256 > > Where X is the number of records created in the table. Ahhh! You have encrypted db ? Then diagnose cannot help too much. Encryption align data to 1KB size. Ignore this messages. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Wed Jan 28 10:41:55 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Jan 28 02:42:02 2004 Subject: V4MD 1.10 In-Reply-To: <019201c3e4d7$852b39d0$3a01a8c0@sbt> Message-ID: on 1/27/04 3:14 PM, Roland Hildebrandt at r.hildebrandt@sbt.fr wrote: > Hi Ruslan ! > > It seems the problem depends of the type of field : > > Long : (!) Table has X physical records but field has 256 > Byte : (!) Table has X physical records but field has 1024 > Datetime: (!) Table has X physical records but field has 128 > String : (!) Table has X physical records but field has (depend of string > length) > Float : (!) Table has X physical records but field has 256 > > Where X is the number of records created in the table. > > Varchar fields never has this problem. Yes, because VarChar itself is aligned to 1KB always. > I think it will work all right for boolean fields but I haven't tested it. > > It seems this is linked with the segment size ??? In fact we use a quite > small segment size : 1024 when creating our bases because we need them to > use few disk space and we have a lot (often more than 50) of fields in each > table. Segment of what? db or BLOB ? For DB that is too small. Min 2KB I recommend. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Wed Jan 28 10:42:43 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Jan 28 02:46:46 2004 Subject: AW: [VServer] Mac error -43 In-Reply-To: Message-ID: on 1/28/04 2:01 AM, Erich Geiersberger at erichg@mcmm.com wrote: >> You could by default use "localHost". >> >> Then ask for server IP or check for connection and if you don't get a >> connection ask for the server IP >> >> Florian > > Yep, this way round it seems to work. I also seem to get no crashes > when asking for other IP addresses. It's only the own one. Hi Erich, So problem solved? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From kevin at mmcr.co.uk Wed Jan 28 12:55:41 2004 From: kevin at mmcr.co.uk (Kevin Boyd - MMCR) Date: Wed Jan 28 06:55:48 2004 Subject: Need an example Valentina In-Reply-To: Message-ID: <003901c3e59e$0967fff0$370f6551@local> Can anyone point me to an example Valentina database file as I want to do an XML dump of one to observe the structure and data format. TIA KB From sunshine at public.kherson.ua Wed Jan 28 15:05:45 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Jan 28 07:05:55 2004 Subject: Need an example Valentina In-Reply-To: <003901c3e59e$0967fff0$370f6551@local> Message-ID: on 1/28/04 2:55 PM, Kevin Boyd - MMCR at kevin@mmcr.co.uk wrote: > Can anyone point me to an example Valentina database file as I want to do an > XML dump of one to observe the structure and data format. Hi Kevin, You can simply run Example1 of V4MD archive And it generate database. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Wed Jan 28 15:10:48 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Jan 28 07:10:54 2004 Subject: Need an example Valentina In-Reply-To: <003901c3e59e$0967fff0$370f6551@local> Message-ID: on 1/28/04 2:55 PM, Kevin Boyd - MMCR at kevin@mmcr.co.uk wrote: > Can anyone point me to an example Valentina database file as I want to do an > XML dump of one to observe the structure and data format. Hi Kevin, BTW, I think XML dump will not help to do import from Access, Although you can try to use it to generate empty db with tables. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From kevin at mmcr.co.uk Wed Jan 28 13:13:37 2004 From: kevin at mmcr.co.uk (Kevin Boyd - MMCR) Date: Wed Jan 28 07:13:46 2004 Subject: Need an example Valentina In-Reply-To: Message-ID: <003f01c3e5a0$8b15b6d0$370f6551@local> Danke schoen! -----Original Message----- From: valentina-bounces@lists.macserve.net [mailto:valentina-bounces@lists.macserve.net] On Behalf Of Ruslan Zasukhin Sent: 28 January 2004 13:06 To: valentina@lists.macserve.net Subject: Re: Need an example Valentina on 1/28/04 2:55 PM, Kevin Boyd - MMCR at kevin@mmcr.co.uk wrote: > Can anyone point me to an example Valentina database file as I want to > do an XML dump of one to observe the structure and data format. Hi Kevin, You can simply run Example1 of V4MD archive And it generate database. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- _______________________________________________ Valentina mailing list Valentina@lists.macserve.net http://lists.macserve.net/mailman/listinfo/valentina From sunshine at public.kherson.ua Wed Jan 28 15:18:33 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Jan 28 07:18:55 2004 Subject: Need an example Valentina In-Reply-To: <003901c3e59e$0967fff0$370f6551@local> Message-ID: on 1/28/04 2:55 PM, Kevin Boyd - MMCR at kevin@mmcr.co.uk wrote: > Can anyone point me to an example Valentina database file as I want to do an > XML dump of one to observe the structure and data format. Kevin, Also I wonder on your timeline. May be Jochen will be able write in the nearest days that feature in Valentina Studio... Jochen, what you think? How long it will take for you to add feature in VS To generate automatically empty tables in Valentina db That correspond to tables in ODBC - Access source? Can you do this in 1-2 days? I think this can be just 100-300 lines of code. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From j.peters at valentina-db.de Wed Jan 28 14:41:59 2004 From: j.peters at valentina-db.de (Jochen Peters) Date: Wed Jan 28 07:42:19 2004 Subject: Need an example Valentina In-Reply-To: References: Message-ID: Hi Ruslan, Hi Kevin, > May be Jochen will be able write in the nearest days that feature in > Valentina Studio... > > Jochen, what you think? > > How long it will take for you to add feature in VS > To generate automatically empty tables in Valentina db > That correspond to tables in ODBC - Access source? > > Can you do this in 1-2 days? I think yes - but i am currently working on improving/fixing the Navigator - so - i want to finish this first. > > I think this can be just 100-300 lines of code. Well - maybe. I must look into this. It is of course a feature i will implement in vStudio anyway - so - what is your timeline Kevin? -- Best regards, Jochen Peters PIIT GmbH ------------------------------------ http://www.valentina-db.de From r.hildebrandt at sbt.fr Wed Jan 28 09:30:36 2004 From: r.hildebrandt at sbt.fr (Roland Hildebrandt) Date: Wed Jan 28 09:09:30 2004 Subject: V4MD vs "" Message-ID: <008a01c3e579$00ac9620$3a01a8c0@sbt> Hi, I get some strange things when retrieving some data from varchar fields or text fields : The records has been created using importascii and the problematic fields has from time to time no value associated. The problem is the following when retrieving the data from records where some varchar fields or text fields has no value : When I use getcolumn or getrecord(s) then it returns for these fields. Where as when I use getfield it returns "". Is there an explanation for this ? or should it always return or "" ? Thank's for any ideas Best regards SBT / HAPPYneuron Roland HILDEBRANDT From sunshine at public.kherson.ua Wed Jan 28 17:31:14 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Jan 28 09:31:23 2004 Subject: V4MD vs "" In-Reply-To: <008a01c3e579$00ac9620$3a01a8c0@sbt> Message-ID: on 1/28/04 10:30 AM, Roland Hildebrandt at r.hildebrandt@sbt.fr wrote: Hi Roland, > I get some strange things when retrieving some data from varchar fields or > text fields : > > The records has been created using importascii and the problematic fields has > from time to time no value associated. > > The problem is the following when retrieving the data from records where some > varchar fields or text fields has no value : > > When I use getcolumn or getrecord(s) then it returns for these fields. > Where as when I use getfield it returns "". > > Is there an explanation for this ? or should it always return or "" ? Deal is that getfield() must be always prefixed by call getIsNull() to check if value is NULL. And only if it is not null, call getfield(). -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From valentina at panamind.com Wed Jan 28 14:44:39 2004 From: valentina at panamind.com (Gary Edge) Date: Wed Jan 28 13:42:22 2004 Subject: VPicture field Message-ID: <6932FA98-51CA-11D8-BB9B-000A95A9A898@panamind.com> The VPicture field has the method PutFormatedPict(inPictType as Integer, inPictData as string) What string value is inPictData expecting? -- Best Regards, Gary -- From sunshine at public.kherson.ua Wed Jan 28 22:13:35 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Jan 28 14:13:42 2004 Subject: VPicture field In-Reply-To: <6932FA98-51CA-11D8-BB9B-000A95A9A898@panamind.com> Message-ID: on 1/28/04 9:44 PM, Gary Edge at valentina@panamind.com wrote: Hi Gary, > The VPicture field has the method PutFormatedPict(inPictType as > Integer, inPictData as string) > > What string value is inPictData expecting? Actually this is BLOB value, buffer that keep picture itself. Just RB strings can handle binary data, So I did use that fact. May be more correct to use here memBuffer. So IF you have MemBuffer you can easy "convert" it to RB String Using TT's plugin. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From fb at memedia.de Wed Jan 28 22:17:17 2004 From: fb at memedia.de (Florian Bogeschdorfer) Date: Wed Jan 28 15:17:24 2004 Subject: Database encryption Message-ID: Hi Ruslan! I am wondering whether the encrytion with embedded server is already working. I tried it today and it "encryted" a 40 MB database in no time at all. Unfortunately I can still read all data in the .dat file although I did not choose to encrypt the whole DB (changeEncryption()) Best regards, Florian From sunshine at public.kherson.ua Wed Jan 28 23:57:29 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Jan 28 15:57:36 2004 Subject: Database encryption In-Reply-To: Message-ID: on 1/28/04 11:17 PM, Florian Bogeschdorfer at fb@memedia.de wrote: > Hi Ruslan! > > I am wondering whether the encrytion with embedded server is already > working. > > I tried it today and it "encryted" a 40 MB database in no time at all. > Unfortunately I can still read all data in the .dat file although I did not > choose to encrypt the whole DB (changeEncryption()) Hi Florian, As I remember, Igor have implement it in Vserver. Please do next: 1) try to play with encryption using LOCAL V4MD Xtra. When you get success you will know that you have RIGHT code. 2) then you can do that in server. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From lists at mangomultimedia.com Wed Jan 28 17:17:25 2004 From: lists at mangomultimedia.com (Trevor DeVore) Date: Wed Jan 28 18:17:44 2004 Subject: Rules for Valentina DB maintenance Message-ID: <83F5C2AE-51F0-11D8-8804-000A956C462A@mangomultimedia.com> Hi, I will be releasing my first Revolution software title which uses Valentina for the database in the near future. I'm wondering if I need to build in a periodic call which will call the compact, defragment, etc. calls after it has been installed on the customers system. Most of the tables will only have a read performed on them. There are one or two tables that have data updated in them on occasion. Are there any rules for how often compact, defragment, etc.? Thanks, -- Trevor DeVore Blue Mango Multimedia trevor@mangomultimedia.com From sunshine at public.kherson.ua Thu Jan 29 10:40:13 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jan 29 02:40:28 2004 Subject: Rules for Valentina DB maintenance In-Reply-To: <83F5C2AE-51F0-11D8-8804-000A956C462A@mangomultimedia.com> Message-ID: on 1/29/04 2:17 AM, Trevor DeVore at lists@mangomultimedia.com wrote: Hi Trevor, > I will be releasing my first Revolution software title which uses > Valentina for the database in the near future. I'm wondering if I need > to build in a periodic call which will call the compact, defragment, > etc. calls after it has been installed on the customers system. May be better give this as menu functions for user? Also good to have XML dump/load > Most of the tables will only have a read performed on them. There are > one or two tables that have data updated in them on occasion. Are > there any rules for how often compact, defragment, etc.? COMPACT you need only after MANY DELETEs DEFRAGMENT -- after MANY INSERTS. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From cindy at kowhaiprogramming.com Thu Jan 29 23:07:39 2004 From: cindy at kowhaiprogramming.com (Cindy Brown) Date: Thu Jan 29 04:05:43 2004 Subject: V4RB and Windows Message-ID: Hi Ruslan, Just spent the whole day working on V4RB and Windows. I downloaded the latest version of V4RB for Windows and recompiled my windows programs on my windows machine. I am finding really severe problems with this. My Macintosh version is working with no problems at all but on the Windows version I am getting an awful lot of databases corrupting. In fact I can't run my workstation program at all as soon as I start my server version (these are my own programs, not your server version). My database files keep coming back that they have corrupted as soon as I have sent across forty or fifty new files. The workstation files keep coming back that they are corrupted. All these with a -351 varchar error. I know you had a Mac varchar error which you fixed and seems to be going fine but are you sure the PC version is working correctly? I really need some help on this as I have customers who are waiting for a fix for this problem. Looking forward to hearing from you. -- Cindy Brown Programmer SchoolMaster Kowhai Programming Systems PO Box 198, Invercargill 81 Marama Avenue South, 9RD Invercargill Phone (03) 213 1243 Fax (03) 213 1248 Mobile (021) 354 930 From sunshine at public.kherson.ua Thu Jan 29 12:21:35 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jan 29 04:22:05 2004 Subject: V4RB and Windows In-Reply-To: Message-ID: on 1/29/04 12:07 PM, Cindy Brown at cindy@kowhaiprogramming.com wrote: Hi Cindy, > Just spent the whole day working on V4RB and Windows. I downloaded the > latest version of V4RB for Windows and recompiled my windows programs on my > windows machine. I am finding really severe problems with this. My Macintosh > version is working with no problems at all but on the Windows version I am > getting an awful lot of databases corrupting. In fact I can't run my > workstation program at all as soon as I start my server version (these are > my own programs, not your server version). My database files keep coming > back that they have corrupted as soon as I have sent across forty or fifty > new files. The workstation files keep coming back that they are corrupted. > All these with a -351 varchar error. > > I know you had a Mac varchar error which you fixed and seems to be going > fine but are you sure the PC version is working correctly? > > I really need some help on this as I have customers who are waiting for a > fix for this problem. > > Looking forward to hearing from you. Please clarify: 1) you build on RB MAC and run on WIN? Or you work in RB WIN IDE ? 2) you use V4RB 1.10 ? 3) you mean you have own server app built over V4RB, And you have client part of app that talk via network to server? 4) what means sent 40-50 files??? 5) V4RB contains _TEST project. it have very cool VarChar test. Check this project. Make sure that VarChar test is not commented. You can comment all other tests. Compile it and run on windows. If this tests go with no problems, then I hope we do not have logical bug. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From r.hildebrandt at sbt.fr Wed Jan 28 18:17:34 2004 From: r.hildebrandt at sbt.fr (Roland Hildebrandt) Date: Thu Jan 29 06:50:25 2004 Subject: V4MD 1.10 References: Message-ID: <013201c3e5c2$9ed32640$3a01a8c0@sbt> Hi, Here the results of new tests : The limit where import fails is not 511 but 509. ie (508 works, 509 fails). It depends not of the length of the data we import. ie If you have a varchar field more than 508 then you can't import even 10 characters. Hope this will give any clues. Best regards SBT / HAPPYneuron Roland HILDEBRANDT ----- Original Message ----- From: "Ruslan Zasukhin" To: Sent: Tuesday, January 27, 2004 11:27 AM Subject: Re: V4MD 1.10 > on 1/27/04 11:15 AM, Roland Hildebrandt at r.hildebrandt@sbt.fr wrote: > > > Problem 2 : > > > > When importing a lot of data we use importascii from a delimited text file. > > This seems to be much faster than any other method. > > > > Using Xtra 1.10. > > > > The import fails (?!) if there is a varchar field in the table more than 511 > > characters long. There is no error message and the database diagnose displays > > no error. In fact nothing happens, no line is added in the table. The problem > > appears with a crypted and a non crypted database. > > > > When replacing all varchars longer than 511 characters by text fields, > > everything works fine. > > > > > > Using Xtra 1.9.8 > > > > Suprisingly everything works fine even with crypted database and long > > varchars. > > Let me repeat: > > IF table have e.g. VarChar field with length e.g. 700 then import totally > fails? > > > -- > Best regards, > Ruslan Zasukhin [ I feel the need...the need for speed ] > ------------------------------------------------------------- > e-mail: ruslan@paradigmasoft.com > web: http://www.paradigmasoft.com > > To subscribe to the Valentina mail list go to: > http://lists.macserve.net/mailman/listinfo/valentina > ------------------------------------------------------------- > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > From sunshine at public.kherson.ua Thu Jan 29 14:58:27 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jan 29 06:58:43 2004 Subject: V4MD 1.10 In-Reply-To: <013201c3e5c2$9ed32640$3a01a8c0@sbt> Message-ID: on 1/28/04 7:17 PM, Roland Hildebrandt at r.hildebrandt@sbt.fr wrote: > Hi, > > Here the results of new tests : > > The limit where import fails is not 511 but 509. ie (508 works, 509 fails). > It depends not of the length of the data we import. ie If you have a varchar > field more than 508 then you can't import even 10 characters. > > Hope this will give any clues. Roland, Is this show stopper for you? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From valentina at panamind.com Thu Jan 29 11:02:52 2004 From: valentina at panamind.com (Gary Edge) Date: Thu Jan 29 10:00:35 2004 Subject: Continued troubles with VPicture and V4RB Message-ID: <97BE3AB0-5274-11D8-9BD1-000A95A9A898@panamind.com> I've not had success saving a jpg image to a table. I've tried the following: dim f as folderitem dim p as picture dim ps as string dim b as binaryStream dim bool as boolean f = GetOpenFolderitem("") -- f is a jpg file for testing b = f.openasbinaryFile ps = b.read(b.length) p = JPEGStringToPictureMBS(ps) -- Plugin by MonkeyBread if p <> nil then canvas1.backdrop = p -- shows picture correctly c.pictureField("lpicture").SetPicture(p) -- c is a pre-existing cursor w/ readwrite access bool = c.update -- bool is true end Now when I try to retrieve the picture using: dim p as picture p = c.pictureField("lpicture").getpicture -- c already exists and is correct record p is nil. I've also tried: dim f as folderitem dim p as picture dim ps as string f = GetOpenFolderitem("") -- f is a jpg file for testing p = f.openaspicture if p <> nil then canvas1.backdrop = p -- shows picture correctly ps = PictureToJPEGStringMBS(p,75) -- Plugin c.pictureField("lpicture").PutFormatedPict(20,ps) -- c is a pre-existing cursor w/ readwrite access bool = c.update -- bool is true end Later calling (simplified) Dim s as string dim p as picture s = c.pictureField("lpicture").getformatedPict() -- CRASH p = JPEGStringToPictureMBS(s) canvas1.backdrop = p -- Best Regards, Gary -- From lists at mangomultimedia.com Thu Jan 29 09:31:31 2004 From: lists at mangomultimedia.com (Trevor DeVore) Date: Thu Jan 29 10:31:41 2004 Subject: Rules for Valentina DB maintenance In-Reply-To: References: Message-ID: <985E0C64-5278-11D8-8804-000A956C462A@mangomultimedia.com> On Jan 29, 2004, at 1:40 AM, Ruslan Zasukhin wrote: > on 1/29/04 2:17 AM, Trevor DeVore at lists@mangomultimedia.com wrote: > > Hi Trevor, > >> I will be releasing my first Revolution software title which uses >> Valentina for the database in the near future. I'm wondering if I >> need >> to build in a periodic call which will call the compact, defragment, >> etc. calls after it has been installed on the customers system. > > May be better give this as menu functions for user? > Also good to have XML dump/load Good idea. In my case I will probably make some sort of key combination to run these if the need arises. The database isn't used for entering any sort of data, it just holds data that we've entered which the Revolution app uses to build it's interface, display information, etc. There is some information stored on QTVRs (last pan, tilt, etc.) which gets updated while using the program but that is it. >> Most of the tables will only have a read performed on them. There are >> one or two tables that have data updated in them on occasion. Are >> there any rules for how often compact, defragment, etc.? > > COMPACT you need only after MANY DELETEs > > DEFRAGMENT -- after MANY INSERTS. So if I am just updating values already entered in the database I shouldn't have to run any of these it seems. Thanks, -- Trevor DeVore Blue Mango Multimedia trevor@mangomultimedia.com From sunshine at public.kherson.ua Thu Jan 29 18:43:54 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jan 29 10:44:05 2004 Subject: Continued troubles with VPicture and V4RB In-Reply-To: <97BE3AB0-5274-11D8-9BD1-000A95A9A898@panamind.com> Message-ID: on 1/29/04 6:02 PM, Gary Edge at valentina@panamind.com wrote: > I've not had success saving a jpg image to a table. I've tried the > following: > > dim f as folderitem > dim p as picture > dim ps as string > dim b as binaryStream > dim bool as boolean > > f = GetOpenFolderitem("") -- f is a jpg file > for testing > b = f.openasbinaryFile > ps = b.read(b.length) > p = JPEGStringToPictureMBS(ps) -- Plugin by MonkeyBread > > if p <> nil then > canvas1.backdrop = p -- shows > picture correctly > c.pictureField("lpicture").SetPicture(p) -- c is a pre-existing > cursor w/ readwrite access > bool = c.update -- bool > is true > end > > Now when I try to retrieve the picture using: > dim p as picture > > p = c.pictureField("lpicture").getpicture -- c already exists and > is correct record > > p is nil. Hmm, On the first look you do all right. You have get Picture, i.e. PICT and use SetPicture() Which should compress it to JPG. Even have no idea. May be somebody from Picture GURU will help? Erne? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Thu Jan 29 18:44:59 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jan 29 10:45:06 2004 Subject: Continued troubles with VPicture and V4RB In-Reply-To: <97BE3AB0-5274-11D8-9BD1-000A95A9A898@panamind.com> Message-ID: on 1/29/04 6:02 PM, Gary Edge at valentina@panamind.com wrote: > I've also tried: > > dim f as folderitem > dim p as picture > dim ps as string > > f = GetOpenFolderitem("") > -- f is a jpg file for testing > p = f.openaspicture > > if p <> nil then > canvas1.backdrop = p > -- shows picture correctly > ps = PictureToJPEGStringMBS(p,75) > -- Plugin > c.pictureField("lpicture").PutFormatedPict(20,ps) > -- c is a pre-existing cursor w/ readwrite access > bool = c.update > -- bool is true > end What if simply b = f.openasbinaryFile ps = b.read(b.length) c.pictureField("lpicture").PutFormatedPict(20,ps) > Later calling (simplified) > > Dim s as string > dim p as picture > > s = c.pictureField("lpicture").getformatedPict() -- CRASH > p = JPEGStringToPictureMBS(s) > > canvas1.backdrop = p -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From valentina at panamind.com Thu Jan 29 13:02:42 2004 From: valentina at panamind.com (Gary Edge) Date: Thu Jan 29 12:00:24 2004 Subject: Continued troubles with VPicture and V4RB In-Reply-To: References: Message-ID: <5557E7DC-5285-11D8-8EC4-000A95A9A898@panamind.com> On Jan 29, 2004, at 11:44 AM, Ruslan Zasukhin wrote: > > What if simply > > b = f.openasbinaryFile > ps = b.read(b.length) > > c.pictureField("lpicture").PutFormatedPict(20,ps) > > > This didn't work either. I even tried accessing the database directly instead of through a cursor. No luck. Ruslan do you have an example of the VPicture field being used in V4RB? -- Best Regards, Gary -- From sunshine at public.kherson.ua Thu Jan 29 20:03:11 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jan 29 12:03:47 2004 Subject: Continued troubles with VPicture and V4RB In-Reply-To: <5557E7DC-5285-11D8-8EC4-000A95A9A898@panamind.com> Message-ID: on 1/29/04 8:02 PM, Gary Edge at valentina@panamind.com wrote: > On Jan 29, 2004, at 11:44 AM, Ruslan Zasukhin wrote: > >> >> What if simply >> >> b = f.openasbinaryFile >> ps = b.read(b.length) >> >> c.pictureField("lpicture").PutFormatedPict(20,ps) >> >> >> > This didn't work either. > > I even tried accessing the database directly instead of through a > cursor. No luck. > > Ruslan do you have an example of the VPicture field being used in V4RB? Yes. example2 -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From cindy at kowhaiprogramming.com Fri Jan 30 07:34:36 2004 From: cindy at kowhaiprogramming.com (Cindy Brown) Date: Thu Jan 29 12:32:39 2004 Subject: V4RB and Windows In-Reply-To: Message-ID: Hi Ruslan, > on 1/29/04 12:07 PM, Cindy Brown at cindy@kowhaiprogramming.com wrote: > > Hi Cindy, > >> Just spent the whole day working on V4RB and Windows. I downloaded the >> latest version of V4RB for Windows and recompiled my windows programs on my >> windows machine. I am finding really severe problems with this. My Macintosh >> version is working with no problems at all but on the Windows version I am >> getting an awful lot of databases corrupting. In fact I can't run my >> workstation program at all as soon as I start my server version (these are >> my own programs, not your server version). My database files keep coming >> back that they have corrupted as soon as I have sent across forty or fifty >> new files. The workstation files keep coming back that they are corrupted. >> All these with a -351 varchar error. >> >> I know you had a Mac varchar error which you fixed and seems to be going >> fine but are you sure the PC version is working correctly? >> >> I really need some help on this as I have customers who are waiting for a >> fix for this problem. >> >> Looking forward to hearing from you. > > Please clarify: > > 1) you build on RB MAC and run on WIN? > Or you work in RB WIN IDE ? I am currently working on RB WIN IDE though I have also built on the Mac and run on Windows. > > 2) you use V4RB 1.10 ? Yes, that's the one I am using. > > 3) you mean you have own server app built over V4RB, > And you have client part of app that talk via network to server? Yep, that's right. My client program keeps a track of a sync list and then when it has opportunity to connect to the server, it starts sending the sync list changes across to the server. This is working well on Mac and has previously worked well on PC. If a client has made 100 changes over the last day or so and then connected to the server, these changes go across one after the other. > > 4) what means sent 40-50 files??? Each file is a record sent from the client to the server and updated, added or deleted on the server where applicable. It appears that each time I run a brand new lot of records through on a database with no errors (I've removed the one with the varchar error and put on a new one on - I have databases with data already on them) then after about 40 or 50 records, the program tells me that my assessments database has a varchar error and the server also gets a varchar error. These errors are not occurring at all on the Macintosh side and I am using the exact same program on windows. > > 5) V4RB contains _TEST project. > it have very cool VarChar test. I'd love to check the project but I don't have time at this stage. I'll keep searching today and see if I can find out any reason why this is not working. There must be a reason!!! I really just wondered if there was a known error. By the way, the error ONLY occurs when I am sending information across to the server. Working as a standalone client, the program is working with no problems at all. -- Cindy Brown Programmer SchoolMaster Kowhai Programming Systems PO Box 198, Invercargill 81 Marama Avenue South, 9RD Invercargill Phone (03) 213 1243 Fax (03) 213 1248 Mobile (021) 354 930 From sunshine at public.kherson.ua Thu Jan 29 20:39:37 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jan 29 12:43:15 2004 Subject: V4RB and Windows In-Reply-To: Message-ID: on 1/29/04 8:34 PM, Cindy Brown at cindy@kowhaiprogramming.com wrote: >> 5) V4RB contains _TEST project. >> it have very cool VarChar test. > > I'd love to check the project but I don't have time at this stage. I'll keep > searching today and see if I can find out any reason why this is not > working. There must be a reason!!! I really just wondered if there was a > known error. Cindy, This is 5 minutes to open it, comment tests and simply RUN. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Thu Jan 29 20:40:14 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jan 29 12:43:34 2004 Subject: V4RB and Windows In-Reply-To: Message-ID: on 1/29/04 8:34 PM, Cindy Brown at cindy@kowhaiprogramming.com wrote: > By the way, the error ONLY occurs when I am sending information across to > the server. Working as a standalone client, the program is working with no > problems at all. May be yo have wrong cache size in your server? Or do not do flush() ? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From valentina at panamind.com Thu Jan 29 15:10:55 2004 From: valentina at panamind.com (Gary Edge) Date: Thu Jan 29 14:08:38 2004 Subject: Solved? - Re: Continued troubles with VPicture and V4RB In-Reply-To: References: Message-ID: <3F05A668-5297-11D8-8EC4-000A95A9A898@panamind.com> I've found a solution to downloading jpgs and saving them to VPicture: f = downloaded jpg's temporary local file p = f.openaspicture tempf = GetTemporaryFolderItem tempf.SaveAsPicture p p = tempf.openaspicture then: c.picturefield("lpicture").setpicture(p) This seems to work! -- Best Regards, Gary -- On Jan 29, 2004, at 1:03 PM, Ruslan Zasukhin wrote: > on 1/29/04 8:02 PM, Gary Edge at valentina@panamind.com wrote: > >> On Jan 29, 2004, at 11:44 AM, Ruslan Zasukhin wrote: >> >>> >>> What if simply >>> >>> b = f.openasbinaryFile >>> ps = b.read(b.length) >>> >>> c.pictureField("lpicture").PutFormatedPict(20,ps) >>> >>> >>> >> This didn't work either. >> >> I even tried accessing the database directly instead of through a >> cursor. No luck. >> >> Ruslan do you have an example of the VPicture field being used in >> V4RB? > > Yes. example2 > > -- > Best regards, > Ruslan Zasukhin [ I feel the need...the need for speed ] > ------------------------------------------------------------- > e-mail: ruslan@paradigmasoft.com > web: http://www.paradigmasoft.com > > To subscribe to the Valentina mail list go to: > http://lists.macserve.net/mailman/listinfo/valentina > ------------------------------------------------------------- > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > From cindy at kowhaiprogramming.com Fri Jan 30 09:17:50 2004 From: cindy at kowhaiprogramming.com (Cindy Brown) Date: Thu Jan 29 14:16:12 2004 Subject: V4RB and Windows In-Reply-To: Message-ID: Hi Ruslan, Cache size is fine and I flush regularly. I'll keep checking. If I can come up with any concrete ideas, I'll ask some more questions so don't worry in the meantime. Thanks. Cindy > on 1/29/04 8:34 PM, Cindy Brown at cindy@kowhaiprogramming.com wrote: > >> By the way, the error ONLY occurs when I am sending information across to >> the server. Working as a standalone client, the program is working with no >> problems at all. > > May be yo have wrong cache size in your server? > Or do not do flush() ? > > -- Cindy Brown Programmer SchoolMaster Kowhai Programming Systems PO Box 198, Invercargill 81 Marama Avenue South, 9RD Invercargill Phone (03) 213 1243 Fax (03) 213 1248 Mobile (021) 354 930 From sunshine at public.kherson.ua Thu Jan 29 22:19:59 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jan 29 14:20:07 2004 Subject: V4RB and Windows In-Reply-To: Message-ID: on 1/29/04 10:17 PM, Cindy Brown at cindy@kowhaiprogramming.com wrote: > Hi Ruslan, > > Cache size is fine and I flush regularly. I'll keep checking. If I can come > up with any concrete ideas, I'll ask some more questions so don't worry in > the meantime. Hi Cindy, Ok, And may be it is time to start switch to Valentin Server? :-) -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From rjb at rz.uni-potsdam.de Thu Jan 29 21:33:44 2004 From: rjb at rz.uni-potsdam.de (Robert Brenstein) Date: Thu Jan 29 14:40:53 2004 Subject: V4RB and Windows In-Reply-To: References: Message-ID: > >By the way, the error ONLY occurs when I am sending information across to >the server. Working as a standalone client, the program is working with no >problems at all. > Just a short in the dark -- could this be an issue with character encoding? RObert From cindy at kowhaiprogramming.com Fri Jan 30 09:47:36 2004 From: cindy at kowhaiprogramming.com (Cindy Brown) Date: Thu Jan 29 14:48:48 2004 Subject: V4RB and Windows In-Reply-To: Message-ID: I would love to but I don't think it will work for me. My clients work often away from the server and need to be able to work with their own set of data all the time and be able to automatically load their changes to the server whenever they get back to where they can connect. As far as I'm aware, there aren't many servers that can manage this. Cindy > on 1/29/04 10:17 PM, Cindy Brown at cindy@kowhaiprogramming.com wrote: > >> Hi Ruslan, >> >> Cache size is fine and I flush regularly. I'll keep checking. If I can come >> up with any concrete ideas, I'll ask some more questions so don't worry in >> the meantime. > > Hi Cindy, > > Ok, > > And may be it is time to start switch to Valentin Server? :-) > -- Cindy Brown Programmer SchoolMaster Kowhai Programming Systems PO Box 198, Invercargill 81 Marama Avenue South, 9RD Invercargill Phone (03) 213 1243 Fax (03) 213 1248 Mobile (021) 354 930 From cindy at kowhaiprogramming.com Fri Jan 30 09:48:35 2004 From: cindy at kowhaiprogramming.com (Cindy Brown) Date: Thu Jan 29 14:48:59 2004 Subject: V4RB and Windows In-Reply-To: Message-ID: Thanks for the suggestion Robert but encoding is all working correctly at the moment. Cindy >> >> By the way, the error ONLY occurs when I am sending information across to >> the server. Working as a standalone client, the program is working with no >> problems at all. >> > > Just a short in the dark -- could this be an issue with character encoding? > > RObert > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > > -- Cindy Brown Programmer SchoolMaster Kowhai Programming Systems PO Box 198, Invercargill 81 Marama Avenue South, 9RD Invercargill Phone (03) 213 1243 Fax (03) 213 1248 Mobile (021) 354 930 From sunshine at public.kherson.ua Thu Jan 29 22:58:43 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jan 29 14:58:52 2004 Subject: V4RB and Windows In-Reply-To: Message-ID: on 1/29/04 10:47 PM, Cindy Brown at cindy@kowhaiprogramming.com wrote: > I would love to but I don't think it will work for me. My clients work often > away from the server and need to be able to work with their own set of data > all the time and be able to automatically load their changes to the server > whenever they get back to where they can connect. As far as I'm aware, there > aren't many servers that can manage this. Have I correctly understand: you have implement this feature IN YOUR server? Actually even Vserver will not have such feature, this is not important. I think important is, that V4RB and V4RB_Client could work inside of one app. Then you can simply A) install Vserver B) work in client app with LOCAL db C) use V4RB_Client to talk to Vserver and use your OWN algorithm of synchronization. > Cindy > >> on 1/29/04 10:17 PM, Cindy Brown at cindy@kowhaiprogramming.com wrote: >> >>> Hi Ruslan, >>> >>> Cache size is fine and I flush regularly. I'll keep checking. If I can come >>> up with any concrete ideas, I'll ask some more questions so don't worry in >>> the meantime. >> >> Hi Cindy, >> >> Ok, >> >> And may be it is time to start switch to Valentin Server? :-) -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From cindy at kowhaiprogramming.com Fri Jan 30 10:22:45 2004 From: cindy at kowhaiprogramming.com (Cindy Brown) Date: Thu Jan 29 15:20:50 2004 Subject: V4RB and Windows In-Reply-To: Message-ID: Hi Ruslan > Have I correctly understand: > you have implement this feature IN YOUR server? Yes, this is how my server has been working for the past year and a half. > > Actually even Vserver will not have such feature, this is not important. > > I think important is, that V4RB and V4RB_Client could work inside of one > app. Then you can simply > > A) install Vserver > B) work in client app with LOCAL db > C) use V4RB_Client to talk to Vserver and use your OWN algorithm of > synchronization. > Sounds good. But we work in a school environment and would then need a vserver program for each school (as each school works separately on their intranet). Would I then have to purchase a vserver for each school? -- Cindy Brown Programmer SchoolMaster Kowhai Programming Systems PO Box 198, Invercargill 81 Marama Avenue South, 9RD Invercargill Phone (03) 213 1243 Fax (03) 213 1248 Mobile (021) 354 930 From sunshine at public.kherson.ua Thu Jan 29 23:26:12 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jan 29 15:28:42 2004 Subject: V4RB and Windows In-Reply-To: Message-ID: on 1/29/04 11:22 PM, Cindy Brown at cindy@kowhaiprogramming.com wrote: Hi Cindy, >> Have I correctly understand: >> you have implement this feature IN YOUR server? > > Yes, this is how my server has been working for the past year and a half. >> >> Actually even Vserver will not have such feature, this is not important. >> >> I think important is, that V4RB and V4RB_Client could work inside of one >> app. Then you can simply >> >> A) install Vserver >> B) work in client app with LOCAL db >> C) use V4RB_Client to talk to Vserver and use your OWN algorithm of >> synchronization. >> > > Sounds good. But we work in a school environment and would then need a > vserver program for each school (as each school works separately on their > intranet). Would I then have to purchase a vserver for each school? Short answer -- no. You can distribute Valentina server with 5 connections royalty free. Only IF some school want more connections IN THE SAME time, You can resale them additional connections. But you still can stay in royalty free schema, If you will connect/disconnect user when he have finish task. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From r.hildebrandt at sbt.fr Wed Jan 28 08:49:56 2004 From: r.hildebrandt at sbt.fr (Roland Hildebrandt) Date: Thu Jan 29 15:40:35 2004 Subject: V4MD 1.10 Message-ID: <005301c3e573$52beedb0$3a01a8c0@sbt> Yes, if there is a varchar of 700 then importascii totally fails (nothing happens, no error message, but nothing in the table). ie. In fact we only tested importing for example a 600 character string into a 600 varchar. Maybe it works if you have a 600 varchar and import a 300 character string into it. Another important point : The import works fine even with 600 character string into 600 varchar using a standard SQL INSERT INTO. Thanks a lot !!! Best regards SBT / HAPPYneuron Roland HILDEBRANDT > > Problem 2 : > > > > When importing a lot of data we use importascii from a delimited text file. > > This seems to be much faster than any other method. > > > > Using Xtra 1.10. > > > > The import fails (?!) if there is a varchar field in the table more than 511 > > characters long. There is no error message and the database diagnose displays > > no error. In fact nothing happens, no line is added in the table. The problem > > appears with a crypted and a non crypted database. > > > > When replacing all varchars longer than 511 characters by text fields, > > everything works fine. > > > > > > Using Xtra 1.9.8 > > > > Suprisingly everything works fine even with crypted database and long > > varchars. > > Let me repeat: > > IF table have e.g. VarChar field with length e.g. 700 then import totally > fails? > > > -- > Best regards, > Ruslan Zasukhin [ I feel the need...the need for speed ] > ------------------------------------------------------------- > e-mail: ruslan@paradigmasoft.com > web: http://www.paradigmasoft.com > > To subscribe to the Valentina mail list go to: > http://lists.macserve.net/mailman/listinfo/valentina > ------------------------------------------------------------- > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > From martin.kloss at gmx.de Fri Jan 30 00:04:58 2004 From: martin.kloss at gmx.de (Martin Kloss) Date: Thu Jan 29 17:05:16 2004 Subject: [V4MD] query speed Message-ID: <6.0.1.1.2.20040129235900.01d87bd8@pop.gmx.de> Hi Ruslan, I was just benchmarking my application and realized that when doing a search in my app the first query needed about twice the time of the second query. that didn't make any sense to me. I'm taking the time a query needs to be returned from the database and if I'm doing the same query twice, the first one is always way slower than the second, i.e. first query takes 3.2 seconds, the second query (the same SQL query) takes only 1.8 seconds. I tried giving more RAM to the db and deleting the index file. But the results are always the same. I'm using RegEx for the search, so the index is not really used on that one I guess. But do you have an explanation or idea how that can be? Martin. Martin Kloss Like the author? Buy the book: http://www.amazon.de/exec/obidos/ASIN/3934358322/lingmmugd Need music? http://www.selling-sound.com Get your daily dose of Lingo: http://www.lingopark.de From sunshine at public.kherson.ua Fri Jan 30 01:38:18 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jan 29 17:38:27 2004 Subject: [V4MD] query speed In-Reply-To: <6.0.1.1.2.20040129235900.01d87bd8@pop.gmx.de> Message-ID: on 1/30/04 1:04 AM, Martin Kloss at martin.kloss@gmx.de wrote: Hi Martin, > I was just benchmarking my application and realized > that when doing a search in my app the first query needed > about twice the time of the second query. that didn't make > any sense to me. > > I'm taking the time a query needs to be returned from > the database and if I'm doing the same query twice, > the first one is always way slower than the second, > i.e. first query takes 3.2 seconds, the second query > (the same SQL query) takes only 1.8 seconds. I think this is result of caching. Remember: DBMS can be cool and warmed. > I tried giving more RAM to the db and deleting the index > file. But the results are always the same. I'm using > RegEx for the search, so the index is not really used > on that one I guess. But do you have an explanation > or idea how that can be? Wait. First query is slow. Second, third, 4th, ... Fast, yes? To get slow again, you need QUITE app, i.e. Kill cache, yes? Then everything is clear -- caching. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From yeomans at desuetude.com Thu Jan 29 18:57:42 2004 From: yeomans at desuetude.com (Charles Yeomans) Date: Thu Jan 29 17:57:57 2004 Subject: Anyone Going to REALworld Conference? In-Reply-To: <002b01c3e55a$382bd580$0100000a@LYNNP42G> References: <002b01c3e55a$382bd580$0100000a@LYNNP42G> Message-ID: On Jan 27, 2004, at 11:50 PM, Lynn Fredricks wrote: > Howdy all, > > Any Valentina for REALbasic users planning on going to the REALworld > conference? > I'm planning to be there. Charles Yeomans From sunshine at public.kherson.ua Fri Jan 30 09:23:19 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jan 30 01:23:32 2004 Subject: Valentina's own methods vs SQL In-Reply-To: Message-ID: on 1/30/04 7:14 AM, yasuhiro tanaka at tanaka@oak.zero.ad.jp wrote: Hi Yasuhiro-san, >> No MAJOR difference. >> >> You can choose any of this ways. >> >> Up to you favor. >> > > Aha! > > May I ask you another question ? Of course. > What does 'MemBuffer_SwapLong' method do ? It swap bytes from bin endian to little endian in 4 bytes ULONG. > There is no description on the documents. MemBuffer -- that was idea add some functions to work with BLOBs and binary data. It is not finished. And it looks Director developers do not need it. Only once somebody have use MemBuffer_SwapLong when manually copy BLOB records from one db to another. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From martin.kloss at gmx.de Fri Jan 30 09:28:32 2004 From: martin.kloss at gmx.de (Martin Kloss) Date: Fri Jan 30 02:30:44 2004 Subject: [V4MD] query speed In-Reply-To: References: <6.0.1.1.2.20040129235900.01d87bd8@pop.gmx.de> Message-ID: <6.0.1.1.2.20040130092553.01d74710@pop.gmx.de> At 00:38 30.01.2004, you wrote: > > i.e. first query takes 3.2 seconds, the second query > > (the same SQL query) takes only 1.8 seconds. > >I think this is result of caching. >Remember: DBMS can be cool and warmed. Hmm, sorry I can't remember seeing any caching features for V4MD. Can you say what exactly you mean? >Wait. >First query is slow. >Second, third, 4th, ... Fast, yes? >To get slow again, you need QUITE app, i.e. Kill cache, yes? >Then everything is clear -- caching. Kill the cache? How? The db in this app is read only anyway, so nothing will be added to the database. Martin. Martin Kloss Like the author? Buy the book: http://www.amazon.de/exec/obidos/ASIN/3934358322/lingmmugd Need music? http://www.selling-sound.com Get your daily dose of Lingo: http://www.lingopark.de From sunshine at public.kherson.ua Fri Jan 30 10:54:23 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jan 30 02:54:42 2004 Subject: [V4MD] query speed In-Reply-To: <6.0.1.1.2.20040130092553.01d74710@pop.gmx.de> Message-ID: on 1/30/04 10:28 AM, Martin Kloss at martin.kloss@gmx.de wrote: > At 00:38 30.01.2004, you wrote: >>> i.e. first query takes 3.2 seconds, the second query >>> (the same SQL query) takes only 1.8 seconds. >> >> I think this is result of caching. >> Remember: DBMS can be cool and warmed. > > Hmm, sorry I can't remember seeing any caching features for V4MD. > Can you say what exactly you mean? ValentinaInit( cacheSize ) When you say 10MB this means Valentina allocate in RAM 10MB of space to cache disk data >> Wait. >> First query is slow. >> Second, third, 4th, ... Fast, yes? >> To get slow again, you need QUITE app, i.e. Kill cache, yes? >> Then everything is clear -- caching. > > Kill the cache? How? ValentinaShutDown() do this. > The db in this app is read only anyway, > so nothing will be added to the database. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From martin.kloss at gmx.de Fri Jan 30 10:04:09 2004 From: martin.kloss at gmx.de (Martin Kloss) Date: Fri Jan 30 03:04:17 2004 Subject: [V4MD] query speed In-Reply-To: References: <6.0.1.1.2.20040130092553.01d74710@pop.gmx.de> Message-ID: <6.0.1.1.2.20040130100116.01d79ce8@pop.gmx.de> At 09:54 30.01.2004, you wrote: > > Hmm, sorry I can't remember seeing any caching features for V4MD. > > Can you say what exactly you mean? > > ValentinaInit( cacheSize ) > >When you say 10MB this means Valentina allocate in RAM 10MB of space to >cache disk data Ok, the app contains a whole lot of pictures and text fields, searched with RegEx. The size is 650 MB, so what is the ideal cache size? I made speed tests and it was a lot faster searching with a 16MB cache, than using a 4MB cache. > > Kill the cache? How? > > ValentinaShutDown() do this. Ok, but I can't do that until the app is closed. So how can I prevent the first search from being so slow? I thought of doing a "dummy" search in the background, while loading the app, so that the first user search is actually the second search, which will be faster. Martin. Martin Kloss Like the author? Buy the book: http://www.amazon.de/exec/obidos/ASIN/3934358322/lingmmugd Need music? http://www.selling-sound.com Get your daily dose of Lingo: http://www.lingopark.de From sunshine at public.kherson.ua Fri Jan 30 11:14:14 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jan 30 03:39:41 2004 Subject: [V4MD] query speed In-Reply-To: <6.0.1.1.2.20040130100116.01d79ce8@pop.gmx.de> Message-ID: on 1/30/04 11:04 AM, Martin Kloss at martin.kloss@gmx.de wrote: > At 09:54 30.01.2004, you wrote: >>> Hmm, sorry I can't remember seeing any caching features for V4MD. >>> Can you say what exactly you mean? >> >> ValentinaInit( cacheSize ) >> >> When you say 10MB this means Valentina allocate in RAM 10MB of space to >> cache disk data > > Ok, the app contains a whole lot of pictures and text fields, > searched with RegEx. The size is 650 MB, so what is the ideal > cache size? I made speed tests and it was a lot faster searching > with a 16MB cache, than using a 4MB cache. Correct. You can self find cache what is the best for you. Usually 10-20MB is enough. In Valentina 2.0 even 200MB cache will be ok. >>> Kill the cache? How? >> >> ValentinaShutDown() do this. > > Ok, but I can't do that until the app is closed. You have not understand. We must not kill cache!!! After this you will gat FIRST SLOW query again. > So how can I prevent the first search from being so slow? No way. When you start app, system is COOL. Cache is empty. So first query in any case will be slower of next. > I thought of doing a "dummy" search in the background, > while loading the app, so that the first user search is actually > the second search, which will be faster. But then start of your app will be slower. Why it is so big problem for you? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From kevin at mmcr.co.uk Fri Jan 30 14:45:23 2004 From: kevin at mmcr.co.uk (Kevin Boyd - MMCR) Date: Fri Jan 30 08:45:56 2004 Subject: Need a freelance Director developer In-Reply-To: Message-ID: <001c01c3e73f$c0ff0440$370f6551@local> Are there any uk based Director developers who could help me out on a cd-rom project in February using Valentina. Please get in touch at kevin@mmcr.co.uk Thx Kevin Boyd From erichg at mcmm.com Fri Jan 30 17:00:32 2004 From: erichg at mcmm.com (Erich Geiersberger) Date: Fri Jan 30 10:00:51 2004 Subject: [VServer] OSX Problems Message-ID: Hi Ruslan, during testing on OSX, we encountered the following problems Hardware: Dual 866 - first database access with loading a lot of records (over 1000) lasts about 10 times longer than on a P350 PC (Client running on the same machine) - When a database disconnect due to time limit of server occurs we are getting severe crashes of the director app (error 9). The question is: What do we need to do after such a disconnect on OSX? What procedure is needed to reconnect the client? Erich From sunshine at public.kherson.ua Fri Jan 30 20:22:42 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jan 30 12:22:57 2004 Subject: [VServer] OSX Problems In-Reply-To: Message-ID: on 1/30/04 6:00 PM, Erich Geiersberger at erichg@mcmm.com wrote: Hi Erich, > during testing on OSX, we encountered the following problems > Hardware: Dual 866 > - first database access with loading a lot of records (over 1000) > lasts about 10 times longer than on a P350 PC (Client running on the > same machine) :-) other developers have found that PC is 10 times slower Read more... > - When a database disconnect due to time limit of server occurs we > are getting severe crashes of the director app (error 9). > The question is: What do we need to do after such a disconnect on OSX? > What procedure is needed to reconnect the client? Yes you can reconnect. BTW, if you EXPECT to get long time on query, e.g. Db is big, query is complex, you can simply set timeout much longer to avoid such disconnect. V4MD have commend to change timeout on client. --------------------- Now about speed. Speed must be comparable. We have test on our MAC and PC that are comparable. Reason of what you see can be: -- on MAC in the .ini file you have VerboseLevel = 3 As result you loose time on a lots of LOG file output. Check this point. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From erichg at mcmm.com Fri Jan 30 19:36:46 2004 From: erichg at mcmm.com (Erich Geiersberger) Date: Fri Jan 30 12:37:06 2004 Subject: [VServer] OSX Problems In-Reply-To: References: Message-ID: > > during testing on OSX, we encountered the following problems > > Hardware: Dual 866 > > > - first database access with loading a lot of records (over 1000) > > lasts about 10 times longer than on a P350 PC (Client running on the > > same machine) > >:-) other developers have found that PC is 10 times slower >Read more... > > > - When a database disconnect due to time limit of server occurs we > > are getting severe crashes of the director app (error 9). > > The question is: What do we need to do after such a disconnect on OSX? > > > What procedure is needed to reconnect the client? > >Yes you can reconnect. > >BTW, if you EXPECT to get long time on query, e.g. Db is big, query is >complex, you can simply set timeout much longer to avoid such disconnect. >V4MD have commend to change timeout on client. > > >--------------------- >Now about speed. > >Speed must be comparable. We have test on our MAC and PC that are >comparable. > >Reason of what you see can be: >-- on MAC in the .ini file you have VerboseLevel = 3 >As result you loose time on a lots of LOG file output. > >Check this point. No, the problem is not debuglevel. I have more results here: I am doing a getcolumn() on a table with 390 records. I have cached the list, it is about 76k large. If I use a server side cursor on the same machine, it lasts between 50.000 and 70.000 ms to do the getcolumn() If I use a client side cursor on the same machine it last between 2 and 3 ms. If I use a server side cursor on a Client (G4 400), it lasts about 700 ms to do the getcolumn() Erich From martin.kloss at gmx.de Fri Jan 30 19:41:45 2004 From: martin.kloss at gmx.de (Martin Kloss) Date: Fri Jan 30 12:41:53 2004 Subject: [V4MD] query speed In-Reply-To: References: <6.0.1.1.2.20040130100116.01d79ce8@pop.gmx.de> Message-ID: <6.0.1.1.2.20040130193813.01d130c0@pop.gmx.de> At 10:14 30.01.2004, you wrote: >Correct. You can self find cache what is the best for you. >Usually 10-20MB is enough. ok thanks, that's what I thought. I found out that after 16MB I will not get any speed improvements. >When you start app, system is COOL. >Cache is empty. >So first query in any case will be slower of next. I get it, it's the initial creation of the cache that happens on the first query of the db. Thanks for the explanation. > > I thought of doing a "dummy" search in the background, > > while loading the app, so that the first user search is actually > > the second search, which will be faster. > >But then start of your app will be slower. >Why it is so big problem for you? Not for me, but for my client who freaks out that the search takes 6 seconds at the first time and 3 seconds after that. So I will search the db during the opening sequence, which is about 5 seconds anyway. Is it enough to use any search to create the cache? I could just do a dummy search that returns only 1 record and is very fast, just so that the cache gets created. Martin. Martin Kloss Like the author? Buy the book: http://www.amazon.de/exec/obidos/ASIN/3934358322/lingmmugd Need music? http://www.selling-sound.com Get your daily dose of Lingo: http://www.lingopark.de From sunshine at public.kherson.ua Fri Jan 30 20:46:34 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jan 30 12:46:49 2004 Subject: [VServer] OSX Problems In-Reply-To: Message-ID: on 1/30/04 8:36 PM, Erich Geiersberger at erichg@mcmm.com wrote: >> Now about speed. >> >> Speed must be comparable. We have test on our MAC and PC that are >> comparable. >> >> Reason of what you see can be: >> -- on MAC in the .ini file you have VerboseLevel = 3 >> As result you loose time on a lots of LOG file output. >> >> Check this point. > > No, the problem is not debuglevel. I have more results here: I have told NOT about DebugLevel But about .ini file parameter VerboseLevel -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Fri Jan 30 20:49:10 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jan 30 12:49:55 2004 Subject: [V4MD] query speed In-Reply-To: <6.0.1.1.2.20040130193813.01d130c0@pop.gmx.de> Message-ID: on 1/30/04 8:41 PM, Martin Kloss at martin.kloss@gmx.de wrote: > Is it enough to use any search to create the cache? In general case NO. Cache leep LAST touched data. If you DB is much bigger of cache, And you do different kind of queries, Can can help not too many. It helps when you touch the same data. > I could just do a dummy search that returns only 1 record > and is very fast, just so that the cache gets created. I do not think ONE record search will help. But if this will be LIKE search, it in any case will iterate all column -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Fri Jan 30 20:53:11 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jan 30 12:53:42 2004 Subject: [VServer] OSX Problems In-Reply-To: Message-ID: on 1/30/04 8:36 PM, Erich Geiersberger at erichg@mcmm.com wrote: > I am doing a getcolumn() on a table with 390 records. > I have cached the list, it is about 76k large. > If I use a server side cursor on the same machine, it lasts between > 50.000 and 70.000 ms to do the getcolumn() > If I use a client side cursor on the same machine it last between 2 and 3 ms. > If I use a server side cursor on a Client (G4 400), it lasts about > 700 ms to do the getcolumn() This have sense. Client side cursor get all in one step. Server side cursor run to server for each next record. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From erichg at mcmm.com Fri Jan 30 20:40:49 2004 From: erichg at mcmm.com (Erich Geiersberger) Date: Fri Jan 30 13:41:06 2004 Subject: [VServer] OSX Problems In-Reply-To: References: Message-ID: > > I am doing a getcolumn() on a table with 390 records. > > I have cached the list, it is about 76k large. > > > If I use a server side cursor on the same machine, it lasts between > > 50.000 and 70.000 ms to do the getcolumn() > > > If I use a client side cursor on the same machine it last between >2 and 3 ms. > > > If I use a server side cursor on a Client (G4 400), it lasts about > > 700 ms to do the getcolumn() >This have sense. > >Client side cursor get all in one step. > >Server side cursor run to server for each next record. Hmm... It takes one second to get the data from an OS 9 based (G4 400) machine over the network (other Xtra! not carbon). It takes 50-70 seconds to get the same data on the SAME (G4 Dual, 866) machine the database runs on (OSX, carbon Xtra). Are you sure? Erich From sunshine at public.kherson.ua Fri Jan 30 21:47:45 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jan 30 13:47:59 2004 Subject: [VServer] OSX Problems In-Reply-To: Message-ID: on 1/30/04 9:40 PM, Erich Geiersberger at erichg@mcmm.com wrote: >>> I am doing a getcolumn() on a table with 390 records. >>> I have cached the list, it is about 76k large. >> >>> If I use a server side cursor on the same machine, it lasts between >>> 50.000 and 70.000 ms to do the getcolumn() >> >>> If I use a client side cursor on the same machine it last between >> 2 and 3 ms. >> >>> If I use a server side cursor on a Client (G4 400), it lasts about >>> 700 ms to do the getcolumn() > > >> This have sense. >> >> Client side cursor get all in one step. >> >> Server side cursor run to server for each next record. > > Hmm... > It takes one second to get the data from an OS 9 based (G4 400) > machine over the network (other Xtra! not carbon). > It takes 50-70 seconds to get the same data on the SAME (G4 Dual, > 866) machine the database runs on (OSX, carbon Xtra). > Are you sure? No, sounds not very good. Try collect for me db v4md project I will check here. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Fri Jan 30 22:31:26 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jan 30 14:31:36 2004 Subject: Valentina 2.0. -- What is your 3 DREAM features? Message-ID: Hi Valentina Developers. (I CC to few lists to reach maximum auditory) We start to port V4RB, V4MD and other Valentina products on Valentina 2.0 kernel. And we are interested to get list of your DREAM features for database in a your favor IDE. Please send such feature list directly to me or to Valentina list. Please send ANY your dream, never mind how fantastic it sounds. Okay? :-) We will use your lists to make sure we did not forget something important. Thank you in advance. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From listmail at gearyweb.com Fri Jan 30 14:06:57 2004 From: listmail at gearyweb.com (michael geary) Date: Fri Jan 30 15:06:24 2004 Subject: Valentina 2.0. -- What is your 3 DREAM features? In-Reply-To: References: Message-ID: <3D2C31E5-5368-11D8-B973-003065B85DAA@gearyweb.com> for starters, I'd like to see: union support sub-selects functions everywhere in a query a BETWEEN function field aliasing: select table.field as thisField... michael geary On Jan 30, 2004, at 1:31 PM, Ruslan Zasukhin wrote: > Hi Valentina Developers. > > (I CC to few lists to reach maximum auditory) > > We start to port V4RB, V4MD and other Valentina products on > Valentina 2.0 kernel. > > And we are interested to get list of your DREAM features for database > in a > your favor IDE. > > Please send such feature list directly to me or to Valentina list. > > Please send ANY your dream, never mind how fantastic it sounds. > Okay? :-) > > We will use your lists to make sure > we did not forget something important. > > Thank you in advance. > > -- > Best regards, > Ruslan Zasukhin [ I feel the need...the need for speed ] > ------------------------------------------------------------- > e-mail: ruslan@paradigmasoft.com > web: http://www.paradigmasoft.com > > To subscribe to the Valentina mail list go to: > http://lists.macserve.net/mailman/listinfo/valentina > ------------------------------------------------------------- > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina From sunshine at public.kherson.ua Fri Jan 30 23:13:43 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jan 30 15:13:51 2004 Subject: Valentina 2.0. -- What is your 3 DREAM features? In-Reply-To: <3D2C31E5-5368-11D8-B973-003065B85DAA@gearyweb.com> Message-ID: on 1/30/04 11:06 PM, michael geary at listmail@gearyweb.com wrote: > for starters, I'd like to see: > > union support done > sub-selects Ivan works on this now > functions everywhere in a query done > a BETWEEN function ? This works now in 1.x > field aliasing: select table.field as thisField... done -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From erichg at mcmm.com Fri Jan 30 21:54:37 2004 From: erichg at mcmm.com (Erich Geiersberger) Date: Fri Jan 30 15:24:32 2004 Subject: [VServer] OSX Client reconnect In-Reply-To: References: Message-ID: > > - When a database disconnect due to time limit of server occurs we > > are getting severe crashes of the director app (error 9). > > The question is: What do we need to do after such a disconnect on OSX? > > > What procedure is needed to reconnect the client? > >Yes you can reconnect. > >BTW, if you EXPECT to get long time on query, e.g. Db is big, query is >complex, you can simply set timeout much longer to avoid such disconnect. >V4MD have commend to change timeout on client. I would like to. But anytime the disconnect occurs, my App crashes, no matter what I try to do. I tried: - close database and shutdownvalentina - only shutdownvalentina - nothing In each and any of these cases, before I even try to reconnect I get an error 9 and poof... This only occurs on Macs, the same scripts run fine with PC Server and Clients. The last error trapped on any database access after a disconnect is error 1023. What should be done next? I treat it as a complete logout. This means I try do dispose of all instances, close Valentina, clear globals and offer a new login. It seems that the Valentinashutdown() causes error 9. Erich From erichg at mcmm.com Fri Jan 30 22:35:15 2004 From: erichg at mcmm.com (Erich Geiersberger) Date: Fri Jan 30 15:35:29 2004 Subject: [VServer] OSX Problems In-Reply-To: References: Message-ID: > > It takes 50-70 seconds to get the same data on the SAME (G4 Dual, > > 866) machine the database runs on (OSX, carbon Xtra). > > Are you sure? > >No, sounds not very good. > >Try collect for me > db > v4md project > >I will check here. Thanks for the offer, but the project is about 70 MB. I need to look if I can strip it down a little bit, but it won't be easy... Erich From aaronbratcher at abdatatools.com Fri Jan 30 16:42:14 2004 From: aaronbratcher at abdatatools.com (Aaron Bratcher) Date: Fri Jan 30 15:42:26 2004 Subject: Valentina 2.0. -- What is your 3 DREAM features? In-Reply-To: References: Message-ID: <2B04AE36-536D-11D8-AF69-000A959E9B12@abdatatools.com> Valentina For REALbasic to implement the REALbasic database API. -- Aaron Bratcher ab DataTools http://www.abDataTools.com On Jan 30, 2004, at 3:31 PM, Ruslan Zasukhin wrote: > Hi Valentina Developers. > > (I CC to few lists to reach maximum auditory) > > We start to port V4RB, V4MD and other Valentina products on > Valentina 2.0 kernel. > > And we are interested to get list of your DREAM features for database > in a > your favor IDE. > > Please send such feature list directly to me or to Valentina list. > > Please send ANY your dream, never mind how fantastic it sounds. > Okay? :-) > > We will use your lists to make sure > we did not forget something important. > > Thank you in advance. > > -- > Best regards, > Ruslan Zasukhin [ I feel the need...the need for speed ] > ------------------------------------------------------------- > e-mail: ruslan@paradigmasoft.com > web: http://www.paradigmasoft.com > > To subscribe to the Valentina mail list go to: > http://lists.macserve.net/mailman/listinfo/valentina > ------------------------------------------------------------- > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina > From mjew at icnc.com Fri Jan 30 14:01:58 2004 From: mjew at icnc.com (Matthew Jew) Date: Fri Jan 30 16:02:05 2004 Subject: Valentina 2.0. -- What is your 3 DREAM features? Message-ID: 1. Support for non-cooperative threads (unix style) without having to use a mutex for the entire engine. 2. The ability to force the Valentina engine to open a DB read-only so multiple apps can share a single read-only DB. 3. More efficient use of disk space for variable length data. - Matthew From sunshine at public.kherson.ua Sat Jan 31 00:21:29 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jan 30 16:21:39 2004 Subject: Valentina 2.0. -- What is your 3 DREAM features? In-Reply-To: <2B04AE36-536D-11D8-AF69-000A959E9B12@abdatatools.com> Message-ID: on 1/30/04 11:42 PM, Aaron Bratcher at aaronbratcher@abdatatools.com wrote: > Valentina For REALbasic to implement the REALbasic database API. Yes, must be impleemnted -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sat Jan 31 00:24:25 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jan 30 16:24:31 2004 Subject: Valentina 2.0. -- What is your 3 DREAM features? In-Reply-To: Message-ID: on 1/31/04 12:01 AM, Matthew Jew at mjew@icnc.com wrote: Hi Mathew? > 1. Support for non-cooperative threads (unix style) without having > to use a mutex for the entire engine. Yes, kernel now is targeted only on preemptive Oses OS X, Windows, Linux. So this is our target > 2. The ability to force the Valentina engine to open a DB read-only > so multiple apps can share a single read-only DB. Mathew, This works in 1.x far far ago. IF you mark db files as READ ONLY in Windows or Finder, Then Valentina open them in shared mode, but not in exclusive mode. > 3. More efficient use of disk space for variable length data. Hmm. What problems you see now? I believe there is no to improve this issue. Do you talk about VarChar ? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sat Jan 31 00:25:46 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jan 30 16:25:53 2004 Subject: [VServer] OSX Client reconnect In-Reply-To: Message-ID: on 1/30/04 10:54 PM, Erich Geiersberger at erichg@mcmm.com wrote: >>> - When a database disconnect due to time limit of server occurs we >>> are getting severe crashes of the director app (error 9). >>> The question is: What do we need to do after such a disconnect on OSX? >> >>> What procedure is needed to reconnect the client? >> >> Yes you can reconnect. >> >> BTW, if you EXPECT to get long time on query, e.g. Db is big, query is >> complex, you can simply set timeout much longer to avoid such disconnect. >> V4MD have commend to change timeout on client. > > I would like to. > But anytime the disconnect occurs, my App crashes, no matter what I try to do. > I tried: > - close database and shutdownvalentina > - only shutdownvalentina > - nothing > > In each and any of these cases, before I even try to reconnect I get > an error 9 and poof... > This only occurs on Macs, the same scripts run fine with PC Server and > Clients. > > The last error trapped on any database access after a disconnect is error > 1023. > What should be done next? > > I treat it as a complete logout. This means I try do dispose of all > instances, close Valentina, clear globals and offer a new login. It > seems that the Valentinashutdown() causes error 9. Igor, sounds like we need test this issue. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sat Jan 31 00:26:55 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jan 30 16:27:01 2004 Subject: [VServer] OSX Problems In-Reply-To: Message-ID: on 1/30/04 11:35 PM, Erich Geiersberger at erichg@mcmm.com wrote: >>> It takes 50-70 seconds to get the same data on the SAME (G4 Dual, >>> 866) machine the database runs on (OSX, carbon Xtra). >>> Are you sure? >> >> No, sounds not very good. >> >> Try collect for me >> db >> v4md project >> >> I will check here. > > Thanks for the offer, but the project is about 70 MB. > I need to look if I can strip it down a little bit, but it won't be easy... Why? You have db. What its size? You have told just about 390 records. And you can use my Example1 in V4Md_Client Modify it to just open your db and do that query. I think this is enough to see problem. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sat Jan 31 00:28:54 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jan 30 16:29:00 2004 Subject: Valentina 2.0. -- What is your 3 DREAM features? In-Reply-To: Message-ID: on 1/31/04 12:04 AM, Dave Wooldridge at ebutterfly@comcast.net wrote: > Ruslan, > > I would love to see full Unicode support in V4RB 2.0 (at least UTF-8). Dave, Valentina 2.0 includes IBM ICU library. We will use UTF16 as native encoding. ICU itself can support 170 encodings. Although it take then 8MB. I think we will put on site 2 builds of ICU 3.5 MB lib with major languages 8MB with ALL languages > Thanks for a great product! > > Regards, > Dave Wooldridge > Electric Butterfly > http://www.ebutterfly.com > > > ------------------------------------ > > >> Hi Valentina Developers. >> >> (I CC to few lists to reach maximum auditory) >> >> We start to port V4RB, V4MD and other Valentina products on >> Valentina 2.0 kernel. >> >> And we are interested to get list of your DREAM features for database in a >> your favor IDE. >> >> Please send such feature list directly to me or to Valentina list. >> >> Please send ANY your dream, never mind how fantastic it sounds. >> Okay? :-) >> >> We will use your lists to make sure >> we did not forget something important. >> >> Thank you in advance. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From jda at his.com Fri Jan 30 17:34:11 2004 From: jda at his.com (jda) Date: Fri Jan 30 16:34:34 2004 Subject: Valentina 2.0. -- What is your 3 DREAM features? In-Reply-To: References: Message-ID: > > >We will use UTF16 as native encoding. But we can store the data as UTF-8, right (to keep the size of our db's down)? It will be converted to and from UTF-16 by Valentina for calculations/sorts/etc. on-the-fly, correct? Jon From sunshine at public.kherson.ua Sat Jan 31 00:42:50 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jan 30 16:43:00 2004 Subject: Valentina 2.0. -- What is your 3 DREAM features? In-Reply-To: Message-ID: on 1/31/04 12:34 AM, jda at jda@his.com wrote: >> We will use UTF16 as native encoding. > > But we can store the data as UTF-8, right (to keep the size of our > db's down)? It will be converted to and from UTF-16 by Valentina for > calculations/sorts/etc. on-the-fly, correct? I still not sure, Jon. Once I have see some problem with UTF8 storage. Do not remember now which one. When I come to String-based indexes, we will think again on this. Yes, dream is to store as UTD8 or some other single byte encoding, IF developer have told this. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sat Jan 31 01:31:23 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jan 30 17:31:31 2004 Subject: Dream features for 3.0 In-Reply-To: Message-ID: on 1/31/04 1:26 AM, George A. Graham Jr. at gagraham@comcast.net wrote: Hi George, > Ruslan, > > It would be nice if you could make the VObjectPointer work with a unique key > field in the main table, other than the RecID. Sometimes the data you have > as an extract from another DB already has an association by a unqiue key in > the 'one' table, and a non-unique key in the 'many' table. That way you > wouldn't have to iterate on an ordered set (by key) of 'one' and 'many' > data. This is my dream feature for V4RB 3.0. I think you talk about standard SQL feature FOREIGN KEY. Yes, this feature is almost finished for kernel 2.0. As well as PRIMARY KEY. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From rjb at rz.uni-potsdam.de Sat Jan 31 00:51:31 2004 From: rjb at rz.uni-potsdam.de (Robert Brenstein) Date: Fri Jan 30 18:03:10 2004 Subject: Valentina 2.0. -- What is your 3 DREAM features? In-Reply-To: References: Message-ID: > >And we are interested to get list of your DREAM features for database in a >your favor IDE. > >Please send such feature list directly to me or to Valentina list. > >Please send ANY your dream, never mind how fantastic it sounds. >Okay? :-) Nothing too fantastic for me but here are a few things in a somewhat random order: -- be able to query ANY parameters/options that are settable by us or by kernel, including things like file mode, file block size, mac file type/create, file extensions. -- add call to check db file version without opening it -- be able to store single global/persistent values easily (using system tables instead of having to maintain my own bo) -- add SQLSelectField and SQLSelectGlobal -- automatic diagnose when opening database which was not properly closed (like in a crash) -- be able to run diagnose within my program and get diagnose reports directly into my program -- sub-cursors -- searching an existing cursor -- have proper support for character encoding and languages of text/string fields, allowing us to control both parameters independently (yes, I know this is promised) -- ability to get progress feedback on time consuming tasks -- option to have automatic time stamping of all or specific fields in a baseobject (updated only when content changes) -- does valentina automatically zeros out space that becomes empty when existing data is encrypted? if not it should. And add an option for doing this upon any record deletion (a new call or an option for delete/all/Record/s) -- easier way to control case-sensitivity of sorts/searches -- built in options to compress large data upon storage and auto decompress upon recall (choice of compression) -- simplify opening/creating encrypted database: New + Set(Structure)Encryption + Open --> CreateEncrypted and Set(Structure)Encryption + Open --> OpenEncrypted with Open returning an error dbEncrypted when trying to open an encrypted db. Also IsStructureEncrypted(fpath), IsDatabaseEncrypted(fpath) to check what kind of db we have (this was discussed on the list last year) -- allow to specify file types/extensions in open() (cf. my post from 2003/01/20) -- implement auto timeout of cursors -- option to open databases in read-only mode (as parameter to open or separate call) regardless whether it is on read-only or read-write medium -- valentinaInit returns the size of actually allocated cache -- allow to specify a limit on a number of returned records from sql query (top n, bottom n) as well as an option to specify the range of returned records (from/to) -- provide similar set of examples for all environments as well as examples of functionality that are specific to a given environment -- stop doing automatic file format conversions on open without our consent -- open() can return error "fileInOlderFormat" or "fileInNewerFormat" and if we want to convert then we use openConverting() or with an extra parameter for Open -- use opportunity to clean up function/param names in BO-APIs -- properly maintain FAQs -- improve documentation Robert Brenstein From sunshine at public.kherson.ua Sat Jan 31 02:26:07 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jan 30 18:26:18 2004 Subject: Valentina 2.0. -- What is your 3 DREAM features? In-Reply-To: Message-ID: on 1/31/04 1:51 AM, Robert Brenstein at rjb@rz.uni-potsdam.de wrote: Hi Robert, > Nothing too fantastic for me but here are a few things in a somewhat > random order: > > -- be able to query ANY parameters/options that are settable by us or > by kernel, including things like file mode, file block size, mac file > type/create, file extensions. You mean by SQL? No promise. WE have start add SQL command SET PROPERTY, GET PROPERTY, But on the hold now. > -- add call to check db file version without opening it good > -- be able to store single global/persistent values easily (using > system tables instead of having to maintain my own bo) Close to SET PROPERTY. > -- add SQLSelectField and SQLSelectGlobal ? > -- automatic diagnose when opening database which was not properly > closed (like in a crash) 100% this will done only with transaction and command log. Not in 2.0 but in 2.5 > -- be able to run diagnose within my program and get diagnose reports > directly into my program Yes, we work on this > -- sub-cursors -- searching an existing cursor ok > -- have proper support for character encoding and languages of > text/string fields, allowing us to control both parameters > independently (yes, I know this is promised) Must have > -- ability to get progress feedback on time consuming tasks ok > -- option to have automatic time stamping of all or specific fields > in a baseobject (updated only when content changes) Yes, we have add DB.Clocks(), and TIMESTAMP field. > -- does valentina automatically zeros out space that becomes empty > when existing data is encrypted? if not it should. And add an option > for doing this upon any record deletion (a new call or an option for > delete/all/Record/s) Yes, is added new flag db.EraseOnDelete. For non encrypted also > -- easier way to control case-sensitivity of sorts/searches Yes, was added flag fCaseInsensetive > -- built in options to compress large data upon storage and auto > decompress upon recall (choice of compression) Mmm, this exists now -- ZIP compression for BLOBs. > -- simplify opening/creating encrypted database: New + > Set(Structure)Encryption + Open --> CreateEncrypted and > Set(Structure)Encryption + Open --> OpenEncrypted with Open returning > an error dbEncrypted when trying to open an encrypted db. Also > IsStructureEncrypted(fpath), IsDatabaseEncrypted(fpath) to check what > kind of db we have (this was discussed on the list last year) Let's discuss this in separate thread. And I did agree in the past with changes? Just not sure it is possible simplify something. > -- allow to specify file types/extensions in open() (cf. my post from > 2003/01/20) Not remember. I will look > -- implement auto timeout of cursors What you mean? Please note, such things as threading, timeouts, progress tasks Can be done easy enough in Server app, which have many threads. But plugins always are single thread. > -- option to open databases in read-only mode (as parameter to open > or separate call) regardless whether it is on read-only or read-write > medium Aha, as flag on open.... I afraid not works. Assume files are not marked. One app open as read only. Ok. But other open as read/write => BIG PROBLEMS. > -- valentinaInit returns the size of actually allocated cache Right now. > -- allow to specify a limit on a number of returned records from sql > query (top n, bottom n) as well as an option to specify the range of > returned records (from/to) Yes we going to have this. Parser recognize it. Algorithms will be improved step by step > -- provide similar set of examples for all environments as well as > examples of functionality that are specific to a given environment agree > -- stop doing automatic file format conversions on open without our > consent -- open() can return error "fileInOlderFormat" or > "fileInNewerFormat" and if we want to convert then we use > openConverting() or with an extra parameter for Open I can agree > -- use opportunity to clean up function/param names in BO-APIs ? > -- properly maintain FAQs > -- improve documentation ok -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sat Jan 31 02:29:11 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jan 30 18:29:18 2004 Subject: Valentina 2.0. -- What is your 3 DREAM features? In-Reply-To: <20040131001114.3975C3B617@kondor.ukrcom.kherson.ua> Message-ID: > From: "chuck hinkle" > Date: Fri, 30 Jan 2004 15:26:54 -0600 (CST) > You want wild, dream features? Okay: > 1) an OLAP engine with MDX support; Hmm, these Is not just a feature, but the whole product :-) > 2) a Point datatype (along with a geographic extension to SQL ... see > Oracle Spatial); Data type POINT ? And this will make you happy? :-) Explain please why? > 3) a 4GL application development environment This is in development -- Valentina Studio -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From frank-list2 at mindstarprods.com Fri Jan 30 21:36:35 2004 From: frank-list2 at mindstarprods.com (Frank Schima) Date: Fri Jan 30 20:36:42 2004 Subject: Valentina 2.0. -- What is your 3 DREAM features? In-Reply-To: References: Message-ID: <499042FC-5396-11D8-B509-000A95A4E83A@mindstarprods.com> Hi Ruslan, Off the top of my head: -Numeric data type! (i.e. 12.5) -Transactions -Temporary tables Best regards, Frank From chuckbo at hinkles.us Fri Jan 30 22:17:03 2004 From: chuckbo at hinkles.us (chuck hinkle) Date: Fri Jan 30 22:17:13 2004 Subject: Valentina 2.0. -- What is your 3 DREAM features? In-Reply-To: Message-ID: >> From: "chuck hinkle" >> Date: Fri, 30 Jan 2004 15:26:54 -0600 (CST) > >> You want wild, dream features? Okay: > >> 1) an OLAP engine with MDX support; > > Hmm, these Is not just a feature, but the whole product > :-) Very, very true. But SQL Server 7 did an exceptional implementation of it, but I don't like Windows. > >> 2) a Point datatype (along with a geographic extension to SQL ... see >> Oracle Spatial); > > Data type POINT ? > > And this will make you happy? :-) > Explain please why? This is probably the least useful to most people, but it's very fine if you need it. I don't have a project for it now, but I've needed it in the past for grpahing. A point refers to an X,Y coordinate, so you can store a Lat/Long there. I haven't played with Oracle Spatial, so I don't know the WHERE clause syntax, but let's say that you are storing landmarks with a point. You can then do a query where you pass a point to the database and have it return all items within a certain distance from that point. That's a tricky thing to program (and optimize) without point data because the distance calculation is based on a circle's radius. So don't take that dream very seriously, but I just wanted to provide some extremely high goals for you to aim at. :) > > >> 3) a 4GL application development environment > > This is in development -- Valentina Studio Cool. From ernestogiannotta at tiscalinet.it Sat Jan 31 09:57:58 2004 From: ernestogiannotta at tiscalinet.it (erne) Date: Sat Jan 31 08:15:29 2004 Subject: Valentina 2.0. -- What is your 3 DREAM features? In-Reply-To: Message-ID: Hi Ruslan, on 30-01-2004 21:31, Ruslan Zasukhin at sunshine@public.kherson.ua wrote: > And we are interested to get list of your DREAM features for database in a > your favor IDE. > I'd like to have: full transaction modes support so that we don't have to care too much about records locking and can afford to keep lots of cursors around safely in a multi-user env and eventually see changes made by others in our living cursors (according to read-committed or read-uncommitted settings) editable multi-table cursors, Vale should know which BO & recid a cursor field belongs and allow for editing then all occurrences of that record field in the cursor would be updated some kind of lexicographic search to be able to look for "e" and find "? ? ?" etc. some tunable soundsalike search to be able to look for "jon" and find "john, joan, jan" etc. thanks for listening Cool Runnings, Erne. -- | e r | Ernesto Giannotta | n e | Musical Box - a media store From sunshine at public.kherson.ua Sat Jan 31 10:27:54 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jan 31 08:15:44 2004 Subject: Valentina 2.0. -- What is your 3 DREAM features? In-Reply-To: Message-ID: on 1/31/04 6:17 AM, chuck hinkle at chuckbo@hinkles.us wrote: >>> From: "chuck hinkle" >>> Date: Fri, 30 Jan 2004 15:26:54 -0600 (CST) >> >>> You want wild, dream features? Okay: >> >>> 1) an OLAP engine with MDX support; >> >> Hmm, these Is not just a feature, but the whole product >> :-) > > Very, very true. But SQL Server 7 did an exceptional implementation of it, > but I don't like Windows. I think this can be feature of Valentina Studio, Implemented as additional plugin. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From valentina at brainchild.nl Sat Jan 31 09:38:49 2004 From: valentina at brainchild.nl (Richard Altenburg) Date: Sat Jan 31 08:15:53 2004 Subject: Lynn Fredricks, what logo and/or text should I include in my program? Message-ID: It has been quite some time since I used Valentina for REALbasic, but in the update to version 1.1 of our Picture Patrol Officer programs, we use Valentina to store tens of thousands of newsgroup names. We will release this update tomorrow morning, and I am busy updating our PAD files, web pages and help files. Now I would like to know if and how I should mention Paradigma or Valentina. I wanted to put Paradigma in the acknowledgment section of the help, but not for legal reasons, but just to say 'thank you' for such a nice database engine. What else should I do? (I know, I could read the agreement, but time is always expensive when you are about to release something) Thanks for your comments (which could be useful for other developers, I remember much discussions about it). -- Richard Altenburg Brainchild Picture Patrol iSticky ID brainchild From sunshine at public.kherson.ua Sat Jan 31 15:45:12 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jan 31 08:16:06 2004 Subject: Question about file suffixes In-Reply-To: Message-ID: on 1/31/04 1:36 AM, Brad Bennett at bbennett@quicomm.com wrote: > Question: I actually have two products where I want to use Valentina. One > is IPNetHunter (the IP Lookup DB app). Another is VisiLaunch. With > VisiLaunch a user could create several different databases, and I would > like for them to be able to double click any one of these Valentina DB > documents to launch VisiLaunch (or put one in their startup items). Note, > however, this same user could also have IPNetHunter on this machine....and > we don't want IPNetHunter to be launched. > > The reason I am asking this is that I note that in the Windows version, > Valentina always appends ".vdb" on the name as the file suffix. Isn't this > going to create a problem as to which application actually "owns" this > database document? That is, if the OS first associates ".vdb" files with > IPNetHunter, isn't double cliking on a VisiLaunch DB file (also ".vdb" > suffix) going to launch IPNetHunter instead of VisiLaunch? > > I tried to find an answer to this question on your site (search), but was > unsuccessful. Can you shed any light as how to handle? Hi Brad, V4RB have function SetExtentions() Using it you can tune your app to use own extensions for Valentina files. And similar one for MacOS file type. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sat Jan 31 14:14:31 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jan 31 08:16:24 2004 Subject: Valentina 2.0. -- What is your 3 DREAM features? In-Reply-To: Message-ID: on 1/31/04 1:56 PM, jda at jda@his.com wrote: > Yes, that's important to most of us, I think. UTF-8 is the "native" > language of RB now, so it's much easier to just store and retrieve > that. Also, Valentina dbs are already large. I not agree! On benchmark pages, you can find results fileMaker, 4D, V12, NeoAccess, all have had BIGGER dbs than Valentina And I am sure Valentina has VERY COMPACT data and indexes. I do not waste any bit. PRE-ALLOCATED empty space in segments, make Valentina db looks big only initially. But in this way works 4D, MS SQL Server and I think other dbs. It seems mySQL InnoDB and it seems Oracle or Sybase even allocate the whole e.g. 600MB db file. I have read that one of problem of InnoDB in mySQL is that IF data eat all this space, there is no way to grow more. As for me, stupid design. Valentina pre-allocate ONE segment (2-32KB) forr each file, But MS SQL server allocate 4 or 8 segments at once. Again. I am sure that Valentina has the most compact indexes, And data also. > I know that a lot of > that is mapped out space, but nonetheless UTF-16 will certainly > increase the size of these databases even more. > For me, as you know, my dream feature is unicode! I think the changes > in 2.0 look absolutely great, and I know I'll make use of many of > them. But even if you just added unicode to 1.0 I would have been > delighted... Unicode did require from us TOTAL changes in all changes. This was not easy step. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sat Jan 31 10:22:46 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jan 31 08:16:40 2004 Subject: Valentina 2.0. -- What is your 3 DREAM features? In-Reply-To: <499042FC-5396-11D8-B509-000A95A4E83A@mindstarprods.com> Message-ID: on 1/31/04 4:36 AM, Frank Schima at frank-list2@mindstarprods.com wrote: Hi Frank, > Off the top of my head: > -Numeric data type! (i.e. 12.5) I hate this. :-) > -Transactions We plan in 2.5 > -Temporary tables Done on kernel level What you exactly mean under this feature? Ability CREATE TABLE TMP ... ------------------ + we have made RAM based tables + it is possible to make the whole database Vdatabase on the RAM. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sat Jan 31 15:41:33 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jan 31 08:16:47 2004 Subject: Valentina 2.0. -- What is your 3 DREAM features? In-Reply-To: Message-ID: on 12/23/03 2:47 PM, jda at jda@his.com wrote: >>> For me, as you know, my dream feature is unicode! I think the changes >>> in 2.0 look absolutely great, and I know I'll make use of many of >>> them. But even if you just added unicode to 1.0 I would have been >>> delighted... >> >> Unicode did require from us TOTAL changes in all changes. >> This was not easy step. >> > > Let me restate that: > > I would have been delighted to pay for a 1.0 upgrade that *only* > included the addition of Unicode. Gladly! I have understood this > I get asked about this > every day by users and potential users. And I have a partnership with > a company that makes a very popular Unicode-based word processor > (Mellel, http://www.redlers.com/), but any kind of bundling > arrangement depends on my app working nicely with Unicode. I'm not > nagging, I'm just pointing out why this is my "dream" feature. > BTW, would it be possible to give developers the ability to decide > what languages to include when they build? This is possible in theory, For this you need self download ICU library, Tune it and compile with GCC. > Then you wouldn't be put in the position of deciding which to use and have two > pre-built plugins. And if one of my customers wants Fijian (if that exists) I > could add that myself without having to go from 3.2 to 8 MB. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sat Jan 31 16:25:30 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jan 31 08:25:39 2004 Subject: Lynn Fredricks, what logo and/or text should I include in my program? In-Reply-To: Message-ID: on 1/31/04 10:38 AM, Richard Altenburg at valentina@brainchild.nl wrote: HI Richard, You can find ValentinaLogo.eps file on EACH download page In the section FILES. > It has been quite some time since I used Valentina for REALbasic, but in the > update to version 1.1 of our Picture Patrol Officer programs, we use > Valentina to store tens of thousands of newsgroup names. > > We will release this update tomorrow morning, and I am busy updating our PAD > files, web pages and help files. > > Now I would like to know if and how I should mention Paradigma or Valentina. > I wanted to put Paradigma in the acknowledgment section of the help, but not > for legal reasons, but just to say 'thank you' for such a nice database > engine. > > What else should I do? (I know, I could read the agreement, but time is > always expensive when you are about to release something) > > Thanks for your comments (which could be useful for other developers, I > remember much discussions about it). -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sat Jan 31 16:29:21 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jan 31 08:29:36 2004 Subject: Valentina 2.0. -- What is your 3 DREAM features? In-Reply-To: Message-ID: on 1/31/04 10:57 AM, erne at ernestogiannotta@tiscalinet.it wrote: Hi Erne, > I'd like to have: > > full transaction modes support > so that we don't have to care too much about records locking > and can afford to keep lots of cursors around safely in a multi-user env > and eventually see changes made by others in our living cursors > (according to read-committed or read-uncommitted settings) > editable multi-table cursors, > Vale should know which BO & recid a cursor field belongs and allow for > editing then all occurrences of that record field in the cursor would be updated No, Erne. Problem not that Valentina did not know. Problem in ambiguity. I not agree that this is good idea update all values in cursor. The best we can do -- allow edit FIELDS of MANY Table. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sat Jan 31 10:27:16 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jan 31 08:32:09 2004 Subject: Valentina 2.0. -- What is your 3 DREAM features? In-Reply-To: Message-ID: on 1/31/04 6:17 AM, chuck hinkle at chuckbo@hinkles.us wrote: >>> 2) a Point datatype (along with a geographic extension to SQL ... see >>> Oracle Spatial); >> >> Data type POINT ? >> >> And this will make you happy? :-) >> Explain please why? > > > This is probably the least useful to most people, but it's very fine if you > need it. I don't have a project for it now, but I've needed it in the past > for grpahing. > A point refers to an X,Y coordinate, so you can store a Lat/Long there. I > haven't played with Oracle Spatial, so I don't know the WHERE clause syntax, > but let's say that you are storing landmarks with a point. You can then do a > query where you pass a point to the database and have it return all items > within a certain distance from that point. That's a tricky thing to program > (and optimize) without point data because the distance calculation is based > on a circle's radius. > So don't take that dream very seriously, but I just wanted to provide some > extremely high goals for you to aim at. :) I see. In the new design we have made own plugin system. It is a target that we will have as Valentina plugins -- Value Type -- Field Type -- Importer/Exporter -- functions We want to have ability give to DEVELOPER define own field type and required methods for it. We will not get this in 2.0 although. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sat Jan 31 16:26:35 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jan 31 08:48:50 2004 Subject: Lynn Fredricks, what logo and/or text should I include in my program? In-Reply-To: Message-ID: on 1/31/04 10:38 AM, Richard Altenburg at valentina@brainchild.nl wrote: > It has been quite some time since I used Valentina for REALbasic, but in the > update to version 1.1 of our Picture Patrol Officer programs, we use > Valentina to store tens of thousands of newsgroup names. > > We will release this update tomorrow morning, and I am busy updating our PAD > files, web pages and help files. > > Now I would like to know if and how I should mention Paradigma or Valentina. > I wanted to put Paradigma in the acknowledgment section of the help, but not > for legal reasons, but just to say 'thank you' for such a nice database > engine. > > What else should I do? (I know, I could read the agreement, but time is > always expensive when you are about to release something) > > Thanks for your comments (which could be useful for other developers, I > remember much discussions about it). Richard, You need put into your about box or help box Valentina logo. That file also have words "Powered by Valentina". -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sat Jan 31 16:27:21 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jan 31 08:48:57 2004 Subject: Valentina 2.0. -- What is your 3 DREAM features? In-Reply-To: Message-ID: on 1/31/04 10:57 AM, erne at ernestogiannotta@tiscalinet.it wrote: > some kind of lexicographic search > to be able to look for "e" and find "? ? ?" etc. > > some tunable soundsalike search > to be able to look for "jon" and find "john, joan, jan" etc. Not sure. May be ICU library can do this. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sat Jan 31 10:20:19 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jan 31 09:05:32 2004 Subject: [DIRECT-L] Valentina 2.0. -- What is your 3 DREAM features? In-Reply-To: <6.0.1.1.2.20040131160057.01cc25f8@pop3.norton.antivirus> Message-ID: on 1/31/04 5:15 AM, Sean Wilson at snw@paradise.net.nz wrote: >> Hi Valentina Developers. >> >> We start to port V4RB, V4MD and other Valentina products on >> Valentina 2.0 kernel. >> >> And we are interested to get list of your DREAM features for database in a >> your favor IDE. >> >> Please send such feature list directly to me or to Valentina list. >> >> Please send ANY your dream, never mind how fantastic it sounds. >> Okay? :-) > > OK, you want fantastic, here's mine! > > A lot of users ask on Director lists for a method to encrypt video files. > There are 2 options suggested: use the Sorenson codec to create a QuickTime > file with a media key (file can only be played by a user with the required > key), or write the file to disk when it's needed and delete it when done. > Both of these solutions have problems - the first involves the use of a > specific codec (which may not be appropriate) and the second means the file > is available to a savvy user *for a limited period of time*. > > My dream would be to stream video from a BLOB field to the QuickTime player > instance (sprite/member) on Director's stage. That simple! I have NO idea > what this would involve, but QT has the inherent ability to play from an > RTSP stream/server which from my limited understanding means it is capable > of dealing with smaller segments of an overall file. I have even less idea > if this is possible from Valentina or would rather require a "special" > QuickTime xtra to be developed. > > Not DB related so much as encryption related, but that's my dream. Not simple feature I think. So we will put it on TO DO list for future. I afraid Director XDK itself do not give us way to work from plugin with QT cast members. May be I am wrong. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sat Jan 31 09:57:11 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jan 31 09:05:39 2004 Subject: Valentina 2.0. -- What is your 3 DREAM features? In-Reply-To: <16B4DA66-53B0-11D8-A673-000A95A9544A@shaw.ca> Message-ID: on 1/31/04 7:41 AM, Norman Palardy at palardyn@shaw.ca wrote: Hi Norman, > Try this on for size : > > - a server side communications library that uses the same > communication protocol that Valentina Server uses so I can write my own > "server" that Valentina clients can talk to thinking it's a Valentina > Server (Sybase has something like this with Server library but the > developer has to implement all the functions to spoof being a Sybase > database - I've done this and it's hugely useful) Norman, I believe we have this already in Valentina Server. Let's clarify. What you mean My Server? Some app made in RB which must be run on server, open some dialogs to control server, yes? THIS IS POSSIBLE right now. Although in fact Valentina server run self as DLL. You app will be actually just a client. In fact this is great, because it can be run on any network computer and monitor server. We offer even more. With Valentina Server you can TOTALLY rename it and tune it in such way, that user see everywhere MyKillerAppServer. User even will not see word Valentina. This allow you make very customized solution. > - tables stored in multiple physical files that I can move to separate > drives for extra search speed. Oh, the search engine has to be able to > paralellize the query so all portions of the table are searched > simultaneously therefore resulting in faster queries. Obviously this > means I want a multi threaded DB engine as well Again let's clarify. This is possible say in Valentina Server, because it is SEPARATE PROCESS which have many threads. REALBasic plugin -- client is single thread. And is just a bridge. If talk about V4RB LOCAL, which self contains engine, I think it also will be single thread. > - "virtual" tables that actually map to other database products real > tables. I could use a Valentina table joined with a virtual Oracle or > Sybase table just as though it were another Valentina table. I see. We was going as first step add Attached Tables from other Valentina db. I wonder, how Valentina can use Oracle's tables? Via ODBC? Then I think this can be feature not of Valentina engine itself, But of Valentina Studio application. IT already have ability work with ODBC dbs and Valentina dbs in the same time. > - full SQL 99 compliance What is the most important features of SQL99 on your opinion? > - dynamically tunable caches per table, procedure, etc ok > - pre-computed views And result stored as TMP table on disk? Until original table will not be changed? > That ought to keep you busy for a bit Really + HOT BACKUP + REPLICATION + TRANSACTIONS -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From valentina at brainchild.nl Sat Jan 31 16:24:44 2004 From: valentina at brainchild.nl (Richard Altenburg) Date: Sat Jan 31 09:25:35 2004 Subject: Lynn Fredricks, what logo and/or text should I include in my program? In-Reply-To: Message-ID: On 31-01-2004 15:26, "Ruslan Zasukhin" wrote: > You need put into your about box or help box > Valentina logo. > That file also have words "Powered by Valentina". OK, so nothing has changed since I last checked (which was over 6 months ago). I will try to find a nice place for the logo. Thanks for giving Picture Patrol Officer the speed our users need :-) From giv at tlc.kherson.ua Sat Jan 31 10:30:25 2004 From: giv at tlc.kherson.ua (Igor Gomon) Date: Sat Jan 31 09:38:50 2004 Subject: [VServer] OSX Client reconnect References: Message-ID: <003001c3e7d4$b4538000$731026c3@giv> Hi Erich, > > > - When a database disconnect due to time limit of server occurs we > > > are getting severe crashes of the director app (error 9). > > > The question is: What do we need to do after such a disconnect on OSX? > > > > > What procedure is needed to reconnect the client? > > > >Yes you can reconnect. When the client detected that server disconnected it due to the timeout, first of all it(client) closes connection to the server, and then sets error code 1023: Connection timed out. So to reconnect in such case you can simply open it again with the same set of parameters, i.e. OpenDataBase(); But keep in mind, that all your stored references to all database objects (such like cursors, fields, tables) became invalid by that time, when you got 1023 error. > > > >BTW, if you EXPECT to get long time on query, e.g. Db is big, query is > >complex, you can simply set timeout much longer to avoid such disconnect. > >V4MD have commend to change timeout on client. > > I would like to. > But anytime the disconnect occurs, my App crashes, no matter what I try to do. > I tried: > - close database and shutdownvalentina > - only shutdownvalentina > - nothing You DO NOT need to call any of these routines since at this moment connection already closed. > > In each and any of these cases, before I even try to reconnect I get > an error 9 and poof... What is error 9? It does not seems like a socket error code... Is this a MAC-specific error code? -- Best regards, Igor Gomon ------------------------------------------------------------- e-mail: giv_ua@inbox.ru web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://listserv.macserve.net/mailman/listinfo/valentina From giv at tlc.kherson.ua Sat Jan 31 10:31:24 2004 From: giv at tlc.kherson.ua (Igor Gomon) Date: Sat Jan 31 09:38:58 2004 Subject: [VServer] OSX Client reconnect References: Message-ID: <003101c3e7d4$b535c9b0$731026c3@giv> ----- Original Message ----- From: "Ruslan Zasukhin" To: ; "Igor" Sent: Saturday, January 31, 2004 12:25 AM Subject: Re: [VServer] OSX Client reconnect > on 1/30/04 10:54 PM, Erich Geiersberger at erichg@mcmm.com wrote: > > >>> - When a database disconnect due to time limit of server occurs we > >>> are getting severe crashes of the director app (error 9). > >>> The question is: What do we need to do after such a disconnect on OSX? > >> > >>> What procedure is needed to reconnect the client? > >> > >> Yes you can reconnect. > >> > >> BTW, if you EXPECT to get long time on query, e.g. Db is big, query is > >> complex, you can simply set timeout much longer to avoid such disconnect. > >> V4MD have commend to change timeout on client. > > > > I would like to. > > But anytime the disconnect occurs, my App crashes, no matter what I try to do. > > I tried: > > - close database and shutdownvalentina > > - only shutdownvalentina > > - nothing > > > > In each and any of these cases, before I even try to reconnect I get > > an error 9 and poof... > > This only occurs on Macs, the same scripts run fine with PC Server and > > Clients. > > > > The last error trapped on any database access after a disconnect is error > > 1023. > > What should be done next? > > > > I treat it as a complete logout. This means I try do dispose of all > > instances, close Valentina, clear globals and offer a new login. It > > seems that the Valentinashutdown() causes error 9. > > Igor, sounds like we need test this issue. OK -- Best regards, Igor Gomon ------------------------------------------------------------- e-mail: giv_ua@inbox.ru web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://listserv.macserve.net/mailman/listinfo/valentina From fb at memedia.de Sat Jan 31 17:37:19 2004 From: fb at memedia.de (Florian Bogeschdorfer) Date: Sat Jan 31 10:37:22 2004 Subject: AW: Valentina 2.0. -- What is your 3 DREAM features? In-Reply-To: Message-ID: And don't forget an advanced search for doubles please:-) Florian From ernestogiannotta at tiscalinet.it Sat Jan 31 17:42:11 2004 From: ernestogiannotta at tiscalinet.it (erne) Date: Sat Jan 31 10:43:05 2004 Subject: Valentina 2.0. -- What is your 3 DREAM features? In-Reply-To: Message-ID: on 31-01-2004 15:29, Ruslan Zasukhin at sunshine@public.kherson.ua wrote: > >> editable multi-table cursors, >> Vale should know which BO & recid a cursor field belongs and allow for >> editing then all occurrences of that record field in the cursor would be > updated > > No, Erne. Problem not that Valentina did not know. > Problem in ambiguity. > > I not agree that this is good idea update all values in cursor. > why not? after all that's just what that change implies and the very meaning of relational model if I must implement this on my own, that's what I'll need to do, right now Vale does this automatically since changes are dinamically seen in all living cursors - but this will no more be true if we going to have tmp for cursors ok... this all falls back to old discussion if we can keep cursors as the cool data storage commodity also in a multi-user environment or we must change our way and use them solely as data retriaval tool, store their values somewhere and release them ASAP this can be time & memory consuming and dangerous as well because how will my app know that data I'm viewing have been changed by other apps? will we have some DataChangedNotification event? If yse where, in the VDatabase object, in the VBAseObject object, in the VCursor object? And what about implementations of Vale that don't handle events? I think I'm making too much confusion here, what I really mean is that would be nice if most if not all these issues would be handled by Valentina at a kernel level with a standard transaction model Cool Runnings, Erne. -- | e r | Ernesto Giannotta | n e | Musical Box - a media store From fci at europa.com Sat Jan 31 08:45:19 2004 From: fci at europa.com (Lynn Fredricks) Date: Sat Jan 31 10:45:32 2004 Subject: Lynn Fredricks, what logo and/or text should I include in myprogram? In-Reply-To: Message-ID: <005101c3e819$9d2acc40$0100000a@LYNNP42G> Hi Richard, > It has been quite some time since I used Valentina for > REALbasic, but in the update to version 1.1 of our Picture > Patrol Officer programs, we use Valentina to store tens of > thousands of newsgroup names. > > We will release this update tomorrow morning, and I am busy > updating our PAD files, web pages and help files. > > Now I would like to know if and how I should mention > Paradigma or Valentina. I wanted to put Paradigma in the > acknowledgment section of the help, but not for legal > reasons, but just to say 'thank you' for such a nice database engine. > > What else should I do? (I know, I could read the agreement, > but time is always expensive when you are about to release something) > > Thanks for your comments (which could be useful for other > developers, I remember much discussions about it). Thanks! If you've already inserted the required logos and references, wherever else is entirely your option. Im not sure if Ruslan has posted all different versions of the Valentina logo, but Im sure he can email them to you. One thing we are very open to is matching the logo color to the color scheme of your product. The original Valentina logo was designed as a flat graphic, not dependent on any one color (well, it does have to contrast enough to be visible, no white on white). Whenever anyone has asked if they can change the color, we've always said yes. Best regards, Lynn Fredricks President Proactive International, LLC http://www.proactive-intl.com From zavpublic at mac.com Sat Jan 31 01:39:30 2004 From: zavpublic at mac.com (zavpublic@mac.com) Date: Sat Jan 31 11:31:38 2004 Subject: Valentina 2.0. -- What is your 3 DREAM features? In-Reply-To: <3D2C31E5-5368-11D8-B973-003065B85DAA@gearyweb.com> References: <3D2C31E5-5368-11D8-B973-003065B85DAA@gearyweb.com> Message-ID: <5EA4A2BA-53D1-11D8-992E-000393CFECE6@mac.com> On Jan 30, 2004, at 1:06 PM, michael geary wrote: > for starters, I'd like to see: > > union support There already is a Valentina Union. Local 532. From forgete at cafederic.com Sat Jan 31 02:16:47 2004 From: forgete at cafederic.com (Eric Forget) Date: Sat Jan 31 11:43:02 2004 Subject: Valentina 2.0. -- What is your 3 DREAM features? In-Reply-To: Message-ID: Hi Ruslan, Here's mine, in no particular order: 1) More solid: fully transactional, automatic recovery, debug version of the kernel for us with a lot of warnings in the console when we are doing idiot things with the API (instead of just trashing the database) 2) Full SQL99 support with optional extensions of all major player (Oracle, MySQL, sqlite, etc.): hey you say dream features! ;-) 3) Having a virtual field type where we can put data in our own format (XML, compressed, or whatever) with all callbacks necessary for: - comparisons - indexing by words - SetBlank() - delete() - methods - etc. The virtual field could be of fixed or variable size, at the developer wish. Eric ___________________________________________________________________ Eric Forget Cafederic ForgetE@cafederic.com Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684> From forgete at cafederic.com Sat Jan 31 02:17:20 2004 From: forgete at cafederic.com (Eric Forget) Date: Sat Jan 31 11:44:02 2004 Subject: Valentina 2.0. -- What is your 3 DREAM features? In-Reply-To: Message-ID: > This is probably the least useful to most people, but it's very fine if you > need it. I don't have a project for it now, but I've needed it in the past > for grpahing. > A point refers to an X,Y coordinate, so you can store a Lat/Long there. I > haven't played with Oracle Spatial, so I don't know the WHERE clause syntax, > but let's say that you are storing landmarks with a point. You can then do a > query where you pass a point to the database and have it return all items > within a certain distance from that point. That's a tricky thing to program > (and optimize) without point data because the distance calculation is based > on a circle's radius. > So don't take that dream very seriously, but I just wanted to provide some > extremely high goals for you to aim at. :) Ruslan, For that you may just add support for callbacks for the structure of the index, i.e. letting the user implements any B-Tree (or whatever) derivatives. Some of the most advanced algorithms have patents on them and you may not want to add the cost of those licenses to everybody. However, if a developer has a specific need, it could add it to over the kernel. Eric ___________________________________________________________________ Eric Forget Cafederic ForgetE@cafederic.com Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684> From forgete at cafederic.com Sat Jan 31 02:18:15 2004 From: forgete at cafederic.com (Eric Forget) Date: Sat Jan 31 11:46:42 2004 Subject: Valentina 2.0. -- What is your 3 DREAM features? In-Reply-To: Message-ID: > Valentina 2.0 includes IBM ICU library. > > We will use UTF16 as native encoding. > ICU itself can support 170 encodings. Although it take then 8MB. > > I think we will put on site 2 builds of ICU > 3.5 MB lib with major languages > 8MB with ALL languages I would prefer ICU being an optional thing. If my application is fully Unicode-based (like with Cocoa), I do not need ICU at all. Why I would like to increase the download size of my application of 3.5MB? (Ok say 1.6 compressed)... What you need to do is a normal API, which is all in Unicode and a side API (facultative), which require ICU. Eric ___________________________________________________________________ Eric Forget Cafederic ForgetE@cafederic.com Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684> From forgete at cafederic.com Sat Jan 31 02:18:26 2004 From: forgete at cafederic.com (Eric Forget) Date: Sat Jan 31 11:52:52 2004 Subject: Valentina 2.0. -- What is your 3 DREAM features? In-Reply-To: Message-ID: >>> We will use UTF16 as native encoding. >> >> But we can store the data as UTF-8, right (to keep the size of our >> db's down)? It will be converted to and from UTF-16 by Valentina for >> calculations/sorts/etc. on-the-fly, correct? > > I still not sure, Jon. > > Once I have see some problem with UTF8 storage. > Do not remember now which one. > > When I come to String-based indexes, we will think again on this. > > Yes, dream is to store as UTD8 or some other single byte encoding, > IF developer have told this. If I may add my grain of salt on this, I will go further: let the user of the database (us) choose. It could be for the whole database, i.e. not necessarily at field level. But as always the more flexibility the better... Here's why: UTF-8 takes 1 to 4 bytes UTF-16 takes 2 to 4 bytes UTF-32 takes 4 bytes Now imagine that you have a field where you allow the user to enter up to 64 characters. Quiz: How much space you have to keep for the field in the database for each of the 3 encodings? Encoding For Americans For International -------- ------------- ----------------- UTF-8 64 256 UTF-16 128 256 UTF-32 256 256 So, as we can see, as soon as we develop a software for international, we need to keep 4 bytes per character anyway. The only difference will be where the blanks are put: at the end or in the middle of the string. However, for all comparisons UTF-32 will be faster since there is no conversion of the characters to be done. UTF-8 4 bytes character is more costly for comparisons than UTF-16 4 bytes character which is also more costly than UTF-32. Unfortunately, most of the Unicode implementations support only UTF-8 and UTF-16. So, for today the ideal is to use UTF-8 for Americans (or French, etc.) and use UTF-16 everywhere else. Once, implementations will be added for UTF-32, it will become useful to switch to it. UTF-32 is the only native encoding. It has once been UTF-16 but it changed lately... Since it is a new code base, why not start going with the flexibility... Eric ___________________________________________________________________ Eric Forget Cafederic ForgetE@cafederic.com Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684> From rjb at rz.uni-potsdam.de Sat Jan 31 18:39:59 2004 From: rjb at rz.uni-potsdam.de (Robert Brenstein) Date: Sat Jan 31 12:02:27 2004 Subject: Valentina 2.0. -- What is your 3 DREAM features? In-Reply-To: References: Message-ID: > > -- be able to query ANY parameters/options that are settable by us or >> by kernel, including things like file mode, file block size, mac file >> type/create, file extensions. > >You mean by SQL? >No promise. WE have start add SQL command SET PROPERTY, GET PROPERTY, >But on the hold now. Direct API will do. Actually non-SQL way is better for now. Those things are needed only under special circumstances. > > -- be able to store single global/persistent values easily (using >> system tables instead of having to maintain my own bo) > >Close to SET PROPERTY. Property of what? I must have missed this topic somehow. But if they allow me to maintain single global values, I am game. But make them available in direct API as well. > > -- add SQLSelectField and SQLSelectGlobal > >? Search list archive for this thread. > > -- option to have automatic time stamping of all or specific fields >> in a baseobject (updated only when content changes) > >Yes, we have add DB.Clocks(), and TIMESTAMP field. Is the TIMESTAMP an internal field (handled automatically by kernel) or it is a field for us to use explicitely? Ideally, a field would have a property "timestamp" settable through Field_SetFlag() and then we have a call Field_GetTimestamp() to find the current value. It should also be properly handled through SQL, so we can easily find records with fields that were modified after specific timestamp. > > -- does valentina automatically zeros out space that becomes empty >> when existing data is encrypted? if not it should. And add an option >> for doing this upon any record deletion (a new call or an option for >> delete/all/Record/s) > >Yes, is added new flag db.EraseOnDelete. >For non encrypted also For non-encrypted should be optional for performance reasons. > > -- built in options to compress large data upon storage and auto >> decompress upon recall (choice of compression) > >Mmm, this exists now -- ZIP compression for BLOBs. Hmm, may be it exists but there is no mention of it in any of the docs I have, so I have no clue how to use it. I'd like this to be simply a field attribute like with indexing or unique -- I just call Field_SetFlag() to make field zip-compressed. By BLOBs, do you mean BLOB fields or all BLOB-type fields (that is BLOB, TEXT, PICT)? > > -- simplify opening/creating encrypted database: New + >> Set(Structure)Encryption + Open --> CreateEncrypted and >> Set(Structure)Encryption + Open --> OpenEncrypted with Open returning >> an error dbEncrypted when trying to open an encrypted db. Also >> IsStructureEncrypted(fpath), IsDatabaseEncrypted(fpath) to check what >> kind of db we have (this was discussed on the list last year) > >Let's discuss this in separate thread. >And I did agree in the past with changes? >Just not sure it is possible simplify something. Search list archive for past discussions. No, you did not actually agree to do this. But yes, I still find these steps non-intuitive and more complicated than needed, particularly for programs that allow our users to have either encrypted or unencrypted databases. Now it is an opportunity to clean this up. Your current approach may be logical in VSDK but not in higher languages. I don't care what you do internally -- you can just call the current functions as they are. > > -- implement auto timeout of cursors > >What you mean? See page 18 of vxcmd manual from December. Although to be truly useful, this should be a property of a cursor not a database (a parameter on SQL call that sets max age in seconds, 0 meaning no expire). > > -- option to open databases in read-only mode (as parameter to open >> or separate call) regardless whether it is on read-only or read-write >> medium > >Aha, as flag on open.... >I afraid not works. > >Assume files are not marked. >One app open as read only. Ok. >But other open as read/write => BIG PROBLEMS. I am not sure problems are so big (at least in my ignorance :) So what if the other app modifies a content of the field. The first app will get the new content (ya, live cursor modifiable by others). That is often desirable. If the 2nd app deletes a record, first should get an error "recordDeleted". If 2nd app makes any structure changes, 1st app returns "cursorNoLongerValid" error. Do I miss anything? But, you can (at least initially) restrict that if a db is open for read, other apps can open it also for read only. A lock file could be used if there is no better way. (A change file could be used to pass level of changes from the read/write up.) > >> -- valentinaInit returns the size of actually allocated cache > >Right now. Hmm. In vxcmd, it returns empty when successful. > > > -- use opportunity to clean up function/param names in BO-APIs > >? For example, SetStructureEncryption()/SetEncryption() should be really called PassStructureEncryptionKey()/PassEncryptionKey() since that is what they do. But (cf above) encryption key should be passed with OpenEncrypted() not as a separate call aynway. A few other examples: Database_Dump() could be Database_WriteDump() or Database_MakeDump() to parallel Database_LoadDump(). May be even better to make them Database_ExportDump() and Database_ImportDump() to parallel Database_ExportAscii() and Database_ImportAscii(). Anything you write out to an external file is export and anything you read from external file is import. Cursor_GetField() could be Cursor_GetFieldValue() to match Cursor_GetFieldName(), Cursor_GetFieldRef() and also Field_GetValue() -- or the latter should be Field_Get to match Cursor_GetField. Actually, Cursor_GetFieldContent() and Field_GetContent() would be even more appropriate. Cursor_SetBlank() does not set the whole cursor so it should be Cursor_BlankRecord() or Cursor_SetRecordBlank(). I realize that we got used to those names as they are but changing to version 2 is a unique opportunity to make function names more self-descriptive with less ambiguities. I just like them nice and clean and logical :) A new item: Do you remember THINK Reference? It was basically a smart searchable database that contained syntax of all functions from System Toolbox and Think language reference. May be such a database convering all your products would be useful for us and you. There would be a standalone GUI to use it but the raw database would be also available for integration into at least some development environments. Robert From cbpelto at pcisys.net Sat Jan 31 11:22:58 2004 From: cbpelto at pcisys.net (Chuck Pelto) Date: Sat Jan 31 12:23:05 2004 Subject: Valentina 2.0. -- What is your 3 DREAM features? In-Reply-To: References: Message-ID: <7F1032B2-541A-11D8-9BD0-00306549C134@pcisys.net> AppleEvent awareness From sunshine at public.kherson.ua Sat Jan 31 20:28:15 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jan 31 12:28:24 2004 Subject: Valentina 2.0. -- What is your 3 DREAM features? // C++ developers In-Reply-To: Message-ID: on 1/31/04 9:17 AM, Eric Forget at forgete@cafederic.com wrote: >> This is probably the least useful to most people, but it's very fine if you >> need it. I don't have a project for it now, but I've needed it in the past >> for grpahing. >> A point refers to an X,Y coordinate, so you can store a Lat/Long there. I >> haven't played with Oracle Spatial, so I don't know the WHERE clause syntax, >> but let's say that you are storing landmarks with a point. You can then do a >> query where you pass a point to the database and have it return all items >> within a certain distance from that point. That's a tricky thing to program >> (and optimize) without point data because the distance calculation is based >> on a circle's radius. >> So don't take that dream very seriously, but I just wanted to provide some >> extremely high goals for you to aim at. :) > > Ruslan, > > For that you may just add support for callbacks for the structure of the > index, i.e. letting the user implements any B-Tree (or whatever) > derivatives. Some of the most advanced algorithms have patents on them and > you may not want to add the cost of those licenses to everybody. However, if > a developer has a specific need, it could add it to over the kernel. Hi Eric, I think on the next week, I will be able grant to you and Totte Access to our CVS, PUBLIC and PROTECTED parts. Lynn, I think we need do this under NDA for Eric and Totte. As I have told, I am interested in comments of these very experienced C++ developers on our design model, on this phase. ---------------- Eric, I think we will get hat you want, not in terms of callbacks, But in terms C++ interface class. You will see in sources. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sat Jan 31 20:31:21 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jan 31 12:31:29 2004 Subject: Valentina 2.0. -- What is your 3 DREAM features? // ICU In-Reply-To: Message-ID: on 1/31/04 9:18 AM, Eric Forget at forgete@cafederic.com wrote: >> Valentina 2.0 includes IBM ICU library. >> >> We will use UTF16 as native encoding. >> ICU itself can support 170 encodings. Although it take then 8MB. >> >> I think we will put on site 2 builds of ICU >> 3.5 MB lib with major languages >> 8MB with ALL languages > > I would prefer ICU being an optional thing. If my application is fully > Unicode-based (like with Cocoa), I do not need ICU at all. Why I would like > to increase the download size of my application of 3.5MB? (Ok say 1.6 > compressed)... But Valentina kernel need it !!! Oh, Eric. Be prepared! Valentina kernel 2.0 itself will be 3-4MB now. Plus ICU. > What you need to do is a normal API, which is all in Unicode and a side API > (facultative), which require ICU. I afraid this is very not easy, Eric. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sat Jan 31 20:35:15 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jan 31 12:35:22 2004 Subject: Valentina 2.0. -- What is your 3 DREAM features? // UTF In-Reply-To: Message-ID: on 1/31/04 9:18 AM, Eric Forget at forgete@cafederic.com wrote: > If I may add my grain of salt on this, I will go further: let the user of > the database (us) choose. It could be for the whole database, i.e. not > necessarily at field level. But as always the more flexibility the better... > > Here's why: > > UTF-8 takes 1 to 4 bytes > UTF-16 takes 2 to 4 bytes > UTF-32 takes 4 bytes > > Now imagine that you have a field where you allow the user to enter up to 64 > characters. Quiz: How much space you have to keep for the field in the > database for each of the 3 encodings? > > Encoding For Americans For International > -------- ------------- ----------------- > > UTF-8 64 256 > UTF-16 128 256 > UTF-32 256 256 > > So, as we can see, as soon as we develop a software for international, we > need to keep 4 bytes per character anyway. The only difference will be where > the blanks are put: at the end or in the middle of the string. > > However, for all comparisons UTF-32 will be faster since there is no > conversion of the characters to be done. UTF-8 4 bytes character is more > costly for comparisons than UTF-16 4 bytes character which is also more > costly than UTF-32. Unfortunately, most of the Unicode implementations > support only UTF-8 and UTF-16. > > So, for today the ideal is to use UTF-8 for Americans (or French, etc.) and > use UTF-16 everywhere else. Yes, Eric, we perfectly understand all this. > Once, implementations will be added for UTF-32, > it will become useful to switch to it. UTF-32 is the only native encoding. > It has once been UTF-16 but it changed lately... And we all must pay less attention then to size of db. HDDs becomes faster and bigger. CPUs faster. BTW, Note OS X, Wndows, and I think Linux, all use UTF16 as native > Since it is a new code base, why not start going with the flexibility... -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sat Jan 31 20:37:18 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jan 31 12:37:24 2004 Subject: AW: Valentina 2.0. -- What is your 3 DREAM features? // doubles In-Reply-To: Message-ID: on 1/31/04 6:37 PM, Florian Bogeschdorfer at fb@memedia.de wrote: > > And don't forget an advanced search for doubles please:-) What you mean ? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sat Jan 31 20:41:35 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jan 31 12:41:41 2004 Subject: Valentina 2.0. -- What is your 3 DREAM features? In-Reply-To: Message-ID: on 1/31/04 6:42 PM, erne at ernestogiannotta@tiscalinet.it wrote: >>> editable multi-table cursors, >>> Vale should know which BO & recid a cursor field belongs and allow for >>> editing then all occurrences of that record field in the cursor would be >> updated >> >> No, Erne. Problem not that Valentina did not know. >> Problem in ambiguity. >> >> I not agree that this is good idea update all values in cursor. >> > > why not? after all that's just what that change implies > and the very meaning of relational model > > if I must implement this on my own, that's what I'll need to do, > right now Vale does this automatically since changes are dinamically seen in > all living cursors - but this will no more be true if we going to have tmp > for cursors > > ok... this all falls back to old discussion > if we can keep cursors as the cool data storage commodity also in a > multi-user environment > or we must change our way and use them solely as data retriaval tool, store > their values somewhere and release them ASAP > > this can be time & memory consuming and dangerous as well because > how will my app know that data I'm viewing have been changed by other apps? Erne, But this is the MAIN RULE OF TRANSACTION !!! * You MUST NOT see any action of other users. * You should work like any other user exists. This is IDEAL. If you do not want this, you need do DIRTY READ mode and periodically refresh cursor if it is TMP or snapshoot Postgre, Access provide feature -- change on other user update. I think we will consider this. But developer must perfectly understand when he can use this, and when this will be killer of system. > will we have some DataChangedNotification event? We will think about this. But I think not in 2.0 > If yse where, in the VDatabase object, in the VBAseObject object, in the > VCursor object? > > And what about implementations of Vale that don't handle events? > > I think I'm making too much confusion here, > what I really mean is that would be nice if most if not all these issues > would be handled by Valentina at a kernel level with a standard transaction > model -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sat Jan 31 20:43:43 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jan 31 12:43:52 2004 Subject: Valentina 2.0. -- What is your 3 DREAM features? // AE In-Reply-To: <7F1032B2-541A-11D8-9BD0-00306549C134@pcisys.net> Message-ID: on 1/31/04 8:22 PM, Chuck Pelto at cbpelto@pcisys.net wrote: > AppleEvent awareness This is more feature of Valentina Studio app. Our C++ SDK did have sources to support AE that VAPP understand. Do you mean support of AE in REALbasic, director plguins? Just I am not sure RB or Director can pass Aes to plugins. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sat Jan 31 20:46:16 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jan 31 12:46:22 2004 Subject: Valentina 2.0. -- What is your 3 DREAM features? // SET PROPERTY In-Reply-To: Message-ID: on 1/31/04 7:39 PM, Robert Brenstein at rjb@rz.uni-potsdam.de wrote: >>> -- be able to query ANY parameters/options that are settable by us or >>> by kernel, including things like file mode, file block size, mac file >>> type/create, file extensions. >> >> You mean by SQL? >> No promise. WE have start add SQL command SET PROPERTY, GET PROPERTY, >> But on the hold now. > > Direct API will do. Actually non-SQL way is better for now. Those > things are needed only under special circumstances. > >>> -- be able to store single global/persistent values easily (using >>> system tables instead of having to maintain my own bo) >> >> Close to SET PROPERTY. > > Property of what? I must have missed this topic somehow. But if they > allow me to maintain single global values, I am game. But make them > available in direct API as well. I have think about GLOBAL PROPERTIES INI FILE properties database scope Table scope Field scope And again note, from one side I'd prefer not extend direct API. It is very hard synchronies it for many languages. On the other hand on this way a lots of power. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sat Jan 31 20:47:48 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jan 31 12:47:53 2004 Subject: Valentina 2.0. -- What is your 3 DREAM features? // TIMESTAMP In-Reply-To: Message-ID: on 1/31/04 7:39 PM, Robert Brenstein at rjb@rz.uni-potsdam.de wrote: >>> -- option to have automatic time stamping of all or specific fields >>> in a baseobject (updated only when content changes) >> >> Yes, we have add DB.Clocks(), and TIMESTAMP field. > > Is the TIMESTAMP an internal field (handled automatically by kernel) > or it is a field for us to use explicitely? Ideally, a field would > have a property "timestamp" settable through Field_SetFlag() and then > we have a call Field_GetTimestamp() to find the current value. It > should also be properly handled through SQL, so we can easily find > records with fields that were modified after specific timestamp. This is new field type. Actually it is ULLONG. It looks we have not yet polish this field type. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sat Jan 31 20:48:56 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jan 31 12:49:02 2004 Subject: Valentina 2.0. -- What is your 3 DREAM features? // db.EraseOnDelete In-Reply-To: Message-ID: on 1/31/04 7:39 PM, Robert Brenstein at rjb@rz.uni-potsdam.de wrote: >>> -- does valentina automatically zeros out space that becomes empty >>> when existing data is encrypted? if not it should. And add an option >>> for doing this upon any record deletion (a new call or an option for >>> delete/all/Record/s) >> >> Yes, is added new flag db.EraseOnDelete. >> For non encrypted also > > For non-encrypted should be optional for performance reasons. Yes, it is FLAG. I do not understand, but what problems with ENCRYPTED ? What is bad if some ENCRYPTED data will be not erased? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sat Jan 31 20:50:40 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jan 31 12:50:46 2004 Subject: Valentina 2.0. -- What is your 3 DREAM features? In-Reply-To: Message-ID: on 1/31/04 7:39 PM, Robert Brenstein at rjb@rz.uni-potsdam.de wrote: >>> -- built in options to compress large data upon storage and auto >>> decompress upon recall (choice of compression) >> >> Mmm, this exists now -- ZIP compression for BLOBs. > > Hmm, may be it exists but there is no mention of it in any of the > docs I have, so I have no clue how to use it. > > I'd like this to be simply a field attribute like with indexing or > unique -- I just call Field_SetFlag() to make field zip-compressed. It is exactly such! > By BLOBs, do you mean BLOB fields or all BLOB-type fields (that is > BLOB, TEXT, PICT)? Yes. Compression was added mainly for TEXT fields. There is no sense to use it for Picture field. And Robert, you use HuperCard? It do not support binary data.. This can explain why you did not see it. In REVOLUTION present binary data. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sat Jan 31 20:51:42 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jan 31 12:51:48 2004 Subject: Valentina 2.0. -- What is your 3 DREAM features? // Encryption In-Reply-To: Message-ID: on 1/31/04 7:39 PM, Robert Brenstein at rjb@rz.uni-potsdam.de wrote: >>> -- simplify opening/creating encrypted database: New + >>> Set(Structure)Encryption + Open --> CreateEncrypted and >>> Set(Structure)Encryption + Open --> OpenEncrypted with Open returning >>> an error dbEncrypted when trying to open an encrypted db. Also >>> IsStructureEncrypted(fpath), IsDatabaseEncrypted(fpath) to check what >>> kind of db we have (this was discussed on the list last year) >> >> Let's discuss this in separate thread. >> And I did agree in the past with changes? >> Just not sure it is possible simplify something. > > Search list archive for past discussions. No, you did not actually > agree to do this. But yes, I still find these steps non-intuitive and > more complicated than needed, particularly for programs that allow > our users to have either encrypted or unencrypted databases. Now it > is an opportunity to clean this up. > > Your current approach may be logical in VSDK but not in higher > languages. I don't care what you do internally -- you can just call > the current functions as they are. Okay, We have not yet work on encryption in 2.0 When we will start, let's think again on this -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sat Jan 31 20:55:44 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jan 31 12:55:49 2004 Subject: Valentina 2.0. -- What is your 3 DREAM features? Open( readonly) In-Reply-To: Message-ID: on 1/31/04 7:39 PM, Robert Brenstein at rjb@rz.uni-potsdam.de wrote: >>> -- option to open databases in read-only mode (as parameter to open >>> or separate call) regardless whether it is on read-only or read-write >>> medium >> >> Aha, as flag on open.... >> I afraid not works. >> >> Assume files are not marked. >> One app open as read only. Ok. >> But other open as read/write => BIG PROBLEMS. > > I am not sure problems are so big (at least in my ignorance :) > > So what if the other app modifies a content of the field. The first > app will get the new content (ya, live cursor modifiable by others). > That is often desirable. If the 2nd app deletes a record, first > should get an error "recordDeleted". If 2nd app makes any structure > changes, 1st app returns "cursorNoLongerValid" error. Do I miss > anything? Yes, Now assume that SECOND app also do OPEN in READ/WRITE mode. Ho I can prevent this? This is why flag on file protect. Of course, it is possible to start again speak: WRITE apps, must set some LOCKS on files... But this is again return to SHARED ACCESS to files. > But, you can (at least initially) restrict that if a db is open for > read, other apps can open it also for read only. A lock file could be > used if there is no better way. (A change file could be used to pass > level of changes from the read/write up.) Use of lock file, means adding into kernel not needed overhead. Valentina server is an answer for such tasks. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sat Jan 31 21:02:15 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jan 31 13:02:22 2004 Subject: Valentina 2.0. -- What is your 3 DREAM features? In-Reply-To: Message-ID: on 1/31/04 7:39 PM, Robert Brenstein at rjb@rz.uni-potsdam.de wrote: >>> -- valentinaInit returns the size of actually allocated cache >> >> Right now. > > Hmm. In vxcmd, it returns empty when successful. Then bug in VXCMD. >>> -- use opportunity to clean up function/param names in BO-APIs >> >> ? > > For example, SetStructureEncryption()/SetEncryption() should be > really called PassStructureEncryptionKey()/PassEncryptionKey() since > that is what they do. But (cf above) encryption key should be passed > with OpenEncrypted() not as a separate call aynway. Aha! I like OpenEncrypted() ! > A few other examples: > > Database_Dump() could be Database_WriteDump() or Database_MakeDump() > to parallel Database_LoadDump(). May be even better to make them > Database_ExportDump() and Database_ImportDump() to parallel > Database_ExportAscii() and Database_ImportAscii(). Anything you write > out to an external file is export and anything you read from external > file is import. I see. Agree. What about saving of existing code? You offer to break a little ? As for me, I also think, it is better to get pain once, Then each time catch it. > Cursor_GetField() could be Cursor_GetFieldValue() to match > Cursor_GetFieldName(), Cursor_GetFieldRef() and also Field_GetValue() > -- or the latter should be Field_Get to match Cursor_GetField. > Actually, Cursor_GetFieldContent() and Field_GetContent() would be > even more appropriate. Value I think is ok, > Cursor_SetBlank() does not set the whole cursor so it should be > Cursor_BlankRecord() or Cursor_SetRecordBlank(). I see... > I realize that we got used to those names as they are but changing to > version 2 is a unique opportunity to make function names more > self-descriptive with less ambiguities. I just like them nice and > clean and logical :) No problems. Just I want to hear where we have not good things. > A new item: > > Do you remember THINK Reference? It was basically a smart searchable > database that contained syntax of all functions from System Toolbox > and Think language reference. May be such a database convering all > your products would be useful for us and you. There would be a > standalone GUI to use it but the raw database would be also available > for integration into at least some development environments. Converting what? From 1.x format to 2.0 format? Or you mean map of above name changes? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From rjb at rz.uni-potsdam.de Sat Jan 31 19:59:31 2004 From: rjb at rz.uni-potsdam.de (Robert Brenstein) Date: Sat Jan 31 13:16:04 2004 Subject: Valentina 2.0. -- What is your 3 DREAM features? // TIMESTAMP In-Reply-To: References: Message-ID: >on 1/31/04 7:39 PM, Robert Brenstein at rjb@rz.uni-potsdam.de wrote: > >>>> -- option to have automatic time stamping of all or specific fields >>>> in a baseobject (updated only when content changes) >>> >>> Yes, we have add DB.Clocks(), and TIMESTAMP field. >> >> Is the TIMESTAMP an internal field (handled automatically by kernel) >> or it is a field for us to use explicitely? Ideally, a field would >> have a property "timestamp" settable through Field_SetFlag() and then >> we have a call Field_GetTimestamp() to find the current value. It >> should also be properly handled through SQL, so we can easily find >> records with fields that were modified after specific timestamp. > >This is new field type. >Actually it is ULLONG. > >It looks we have not yet polish this field type. So what is the advantage of this new field versus my using a normal long field to store a timestamp? This is what I do now. Robert From sunshine at public.kherson.ua Sat Jan 31 21:18:14 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jan 31 13:18:19 2004 Subject: Valentina 2.0. -- What is your 3 DREAM features? // TIMESTAMP In-Reply-To: Message-ID: on 1/31/04 8:59 PM, Robert Brenstein at rjb@rz.uni-potsdam.de wrote: >> on 1/31/04 7:39 PM, Robert Brenstein at rjb@rz.uni-potsdam.de wrote: >> >>>>> -- option to have automatic time stamping of all or specific fields >>>>> in a baseobject (updated only when content changes) >>>> >>>> Yes, we have add DB.Clocks(), and TIMESTAMP field. >>> >>> Is the TIMESTAMP an internal field (handled automatically by kernel) >>> or it is a field for us to use explicitely? Ideally, a field would >>> have a property "timestamp" settable through Field_SetFlag() and then >>> we have a call Field_GetTimestamp() to find the current value. It >>> should also be properly handled through SQL, so we can easily find >>> records with fields that were modified after specific timestamp. >> >> This is new field type. >> Actually it is ULLONG. >> >> It looks we have not yet polish this field type. > > So what is the advantage of this new field versus my using a normal > long field to store a timestamp? This is what I do now. It is intended to store INTERNAL DB CLOCKs value. Probably it will get value automatically -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From rjb at rz.uni-potsdam.de Sat Jan 31 20:20:42 2004 From: rjb at rz.uni-potsdam.de (Robert Brenstein) Date: Sat Jan 31 13:32:04 2004 Subject: Valentina 2.0. -- What is your 3 DREAM features? In-Reply-To: References: Message-ID: >on 1/31/04 7:39 PM, Robert Brenstein at rjb@rz.uni-potsdam.de wrote: > >>>> -- built in options to compress large data upon storage and auto >>>> decompress upon recall (choice of compression) >>> >>> Mmm, this exists now -- ZIP compression for BLOBs. >> >> Hmm, may be it exists but there is no mention of it in any of the >> docs I have, so I have no clue how to use it. >> >> I'd like this to be simply a field attribute like with indexing or >> unique -- I just call Field_SetFlag() to make field zip-compressed. > >It is exactly such! Ahh, I see it now. I searched for "zip" not for "compressed". > >> By BLOBs, do you mean BLOB fields or all BLOB-type fields (that is >> BLOB, TEXT, PICT)? > >Yes. Compression was added mainly for TEXT fields. > >There is no sense to use it for Picture field. > >And Robert, you use HuperCard? >It do not support binary data.. >This can explain why you did not see it. > >In REVOLUTION present binary data. I have moved to MetaCard (the older brother of Revolution) with most of my projects. Robert From rjb at rz.uni-potsdam.de Sat Jan 31 20:14:58 2004 From: rjb at rz.uni-potsdam.de (Robert Brenstein) Date: Sat Jan 31 13:32:12 2004 Subject: Valentina 2.0. -- What is your 3 DREAM features? // SET PROPERTY In-Reply-To: References: Message-ID: > >>> -- be able to store single global/persistent values easily (using >>>> system tables instead of having to maintain my own bo) >>> >>> Close to SET PROPERTY. >> >> Property of what? I must have missed this topic somehow. But if they >> allow me to maintain single global values, I am game. But make them >> available in direct API as well. > >I have think about > > GLOBAL PROPERTIES > INI FILE properties > database scope > Table scope > Field scope A yes, that will do. For me database and table level will suffice. Isn't global the same as database above? Or do you have a way to store properties that apply to all databases? Ini file things must be specific for windows only. But is it needed? Our applications can use their own pref files for external storage. >And again note, from one side I'd prefer not extend direct API. >It is very hard synchronies it for many languages. > >On the other hand on this way a lots of power. You could do it with a single call to set and another to retrieve, so the impact on API would not be so drastic. I understand that SQL way has its advantages but it is also somewhat of a bother having to construct SQL query, then call SQLSelect or SQLExecute, have the engine parse the query, execute it, and finally return results. A single direct call seems simpler and more effective, particularly where every bit of performance counts (like running as a web server cgi). Robert From rjb at rz.uni-potsdam.de Sat Jan 31 20:22:50 2004 From: rjb at rz.uni-potsdam.de (Robert Brenstein) Date: Sat Jan 31 13:32:20 2004 Subject: Valentina 2.0. -- What is your 3 DREAM features? // db.EraseOnDelete In-Reply-To: References: Message-ID: >on 1/31/04 7:39 PM, Robert Brenstein at rjb@rz.uni-potsdam.de wrote: > >>>> -- does valentina automatically zeros out space that becomes empty >>>> when existing data is encrypted? if not it should. And add an option >>>> for doing this upon any record deletion (a new call or an option for >>>> delete/all/Record/s) >>> >>> Yes, is added new flag db.EraseOnDelete. >>> For non encrypted also >> >> For non-encrypted should be optional for performance reasons. > >Yes, it is FLAG. > >I do not understand, but what problems with ENCRYPTED ? > >What is bad if some ENCRYPTED data will be not erased? > For encrypted it should be done by default, opposite than for unencrypted. We discussed this last year. If it is not done, there is a chance of inappropriate data exposure to prying eyes. Robert From sunshine at public.kherson.ua Sat Jan 31 22:19:14 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jan 31 14:19:22 2004 Subject: Valentina 2.0. -- What is your 3 DREAM features? In-Reply-To: Message-ID: on 1/31/04 9:50 PM, Norman Palardy at palardyn@shaw.ca wrote: >>> - tables stored in multiple physical files that I can move to separate >>> drives for extra search speed. Oh, the search engine has to be able to >>> paralellize the query so all portions of the table are searched >>> simultaneously therefore resulting in faster queries. Obviously this >>> means I want a multi threaded DB engine as well >> >> Again let's clarify. >> >> This is possible say in Valentina Server, because it is SEPARATE >> PROCESS >> which have many threads. REALBasic plugin -- client is single thread. >> And is just a bridge. >> >> If talk about V4RB LOCAL, which self contains engine, I think it also >> will >> be single thread. > > In the server within EACH of those query threads I'd want a query to be Okay, so you speak about SERVER APPLICATION, not about plugin. > split into MANY sub threads so that the various portions of tables > (which are on several different disks) can all be searched at once. The > main thread for this would then aggregate all the results and return > them to the valentina client. Yes, I see what you mean -- parallel execution of sub-tasks of query. > This way if a portion on TABLE_A, from rowID 1 to 100, is on disk 1, > rows 101 to 200 on disk 2 and rows 201 to 300 on disk 3 a query like > > select * from TABLE_A should be split into 3 sub threads and run as > > on disk 1 -> select * from TABLE_A gets rows in the 1 to 100 range > on disk 2 -> select * from TABLE_A gets rows in the 101 to 200 range > on disk 3 -> select * from TABLE_A gets rows in the 201 to 300 range > > group and sort all results into one result set > > return results to query > > BUT the first 3 steps are run simultaneously > Obviously this is a very simplified example. The more partitions the > more subthreads can be spawned. On a single CPU system this might make > little difference, but with multiple drives it should make some. On > multiCPU systems this could be a huge performance gain. Yes. Correct. This is HUGE task. As theoretical, so practical. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From timdavis at amug.org Sat Jan 31 13:21:56 2004 From: timdavis at amug.org (Tim Davis) Date: Sat Jan 31 14:22:05 2004 Subject: Valentina 2.0. -- What is your 3 DREAM features? In-Reply-To: References: Message-ID: <1D607AA4-542B-11D8-88FC-000A95D87648@amug.org> >> some kind of lexicographic search >> to be able to look for "e" and find "? ? ?" etc. >> >> some tunable soundsalike search >> to be able to look for "jon" and find "john, joan, jan" etc. > > Not sure. May be ICU library can do this. I also would like to be able to select lexicographic and phonetic algorithms (ie. Soundex) for searches AND sorts. Additionally I would like to be able to define custom sorts of a unique string pattern. For example, I recently was dealing with a string which had patterned combination of strings and numbers. My result was to break it up into three baseobject methods, and then Order By each of those methods. It would be nice to be able to define a custom default sort for strings/varchar to streamline use of that field. Thanks, Tim Davis VSRV, V4RB From jda at his.com Sat Jan 31 15:29:37 2004 From: jda at his.com (jda) Date: Sat Jan 31 14:29:43 2004 Subject: Valentina 2.0. -- What is your 3 DREAM features? In-Reply-To: <1D607AA4-542B-11D8-88FC-000A95D87648@amug.org> References: <1D607AA4-542B-11D8-88FC-000A95D87648@amug.org> Message-ID: >>>some kind of lexicographic search >>>to be able to look for "e" and find "? ? ?" etc. >>> >>>some tunable soundsalike search >>>to be able to look for "jon" and find "john, joan, jan" etc. >> >>Not sure. May be ICU library can do this. Well, if we're getting into complex searches/sorts: I'd like to be able to exclude certain words/phrases in a sort. For example, when sorting book titles it is common to ignore a preceding "The". I've also read that in some languages honorifics (if that's the right word) in names are ignored during a sort, as in "von Barron" would sort as "Barron" (I stand to be corrected if I am incorrect on this). Jon From sunshine at public.kherson.ua Sat Jan 31 22:32:25 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jan 31 14:32:31 2004 Subject: Valentina 2.0. -- What is your 3 DREAM features? // SET PROPERTY In-Reply-To: Message-ID: on 1/31/04 9:14 PM, Robert Brenstein at rjb@rz.uni-potsdam.de wrote: >>>>> -- be able to store single global/persistent values easily (using >>>>> system tables instead of having to maintain my own bo) >>>> >>>> Close to SET PROPERTY. >>> >>> Property of what? I must have missed this topic somehow. But if they >>> allow me to maintain single global values, I am game. But make them >>> available in direct API as well. >> >> I have think about >> >> GLOBAL PROPERTIES >> INI FILE properties >> database scope >> Table scope >> Field scope > > A yes, that will do. For me database and table level will suffice. > > Isn't global the same as database above? Or do you have a way to > store properties that apply to all databases? Aha, I think INI and GLOBAL will be the same > Ini file things must be specific for windows only. But is it needed? INI -- this is for Valentina server > Our applications can use their own pref files for external storage. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From rjb at rz.uni-potsdam.de Sat Jan 31 21:36:10 2004 From: rjb at rz.uni-potsdam.de (Robert Brenstein) Date: Sat Jan 31 14:53:17 2004 Subject: Valentina 2.0. -- What is your 3 DREAM features? In-Reply-To: References: Message-ID: > >What about saving of existing code? >You offer to break a little ? > >As for me, I also think, it is better to get pain once, >Then each time catch it. From what I gather, switching to version 2 will require reworking our codes no matter what. So yes, i don't see a problem breaking compatibility if that improves the future. Besides, function name changes can usually be easily made with a single global replace. Robert From rjb at rz.uni-potsdam.de Sat Jan 31 21:41:10 2004 From: rjb at rz.uni-potsdam.de (Robert Brenstein) Date: Sat Jan 31 14:53:27 2004 Subject: Valentina 2.0. -- What is your 3 DREAM features? // TIMESTAMP In-Reply-To: References: Message-ID: >on 1/31/04 8:59 PM, Robert Brenstein at rjb@rz.uni-potsdam.de wrote: > >>> on 1/31/04 7:39 PM, Robert Brenstein at rjb@rz.uni-potsdam.de wrote: >>> >>>>>> -- option to have automatic time stamping of all or specific fields >>>>>> in a baseobject (updated only when content changes) >>>>> >>>>> Yes, we have add DB.Clocks(), and TIMESTAMP field. >>>> >>>> Is the TIMESTAMP an internal field (handled automatically by kernel) >>>> or it is a field for us to use explicitely? Ideally, a field would >>>> have a property "timestamp" settable through Field_SetFlag() and then >>>> we have a call Field_GetTimestamp() to find the current value. It >>>> should also be properly handled through SQL, so we can easily find >>>> records with fields that were modified after specific timestamp. >>> >>> This is new field type. >>> Actually it is ULLONG. >>> >>> It looks we have not yet polish this field type. >> >> So what is the advantage of this new field versus my using a normal >> long field to store a timestamp? This is what I do now. > >It is intended to store INTERNAL DB CLOCKs value. > >Probably it will get value automatically But what will trigger the update? Any change to a record containting a timestamp field? Or can it be associated with a specific field? In other words, will the automatic process be associated with SetField or with UpdateRecord/NewRecord? I gather it will be triggered in either case by any call, even if the content is not truly changed. Robert From sunshine at public.kherson.ua Sat Jan 31 22:55:18 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jan 31 14:55:27 2004 Subject: Valentina 2.0. -- What is your 3 DREAM features? In-Reply-To: <8F1F6432-542C-11D8-8BEA-000A95A9544A@shaw.ca> Message-ID: on 1/31/04 10:32 PM, Norman Palardy at palardyn@shaw.ca wrote: >> You have not explain, >> >> So this PLUGIN on server side...how it will talk with Oracle? >> Using ODBC? Or using their own CLIENT ? > > Personally I'd recommend using the Oracle OCI. But, with a well defined > API for plugins I could use any transport (ODBC or OCI) to make this > table available to Valentina. > >> Norman, I wonder, are you C++ developer? > > I am. Interesting. I did not know this. >> I think such feature: >> >> plugin of foreign DBMS tables >> >> Really can be added to Valentina 2.0 relatively easy. >> >> We have I_Table interface. >> So it needs just implement this interface for Oracle table. > > Very cool. And this could/would be in the server itself ? Or on my > client ? On server. > The reason I'd want this set up in the server is then to any developer > using the server these tables are normal tables usable in any query. no > special handling required. I understand this. > If I have to do this on the client side I could do that with multiple > RB plugins (or other IDE's equivalents) and manually "join" these > tables. Look. We are going to have in the Valentina 2.0 own plugin system. We have made some testing to make it work on all platforms. We have no need make complex pluigns, so that was not very hard. As plugins we see -- Import/exporter -- I_Value subclasses -- I_Field subclasses -- functions -- Encryptors -- Compressors In fact, with some small changes we can make any Valentina interface to be pluggable. >From our talk, I see now that it is possible to make as plugin I_Table also. Then to get your dream it needs just implement I_Table subclass, For example Table_ODBC Table_Oracle ... This interface, just require general Table functionality E.g. NextRecord, get_FieldCount(), get_Field( Name ), .. Hmm, interesting. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sat Jan 31 23:03:47 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jan 31 15:03:52 2004 Subject: Valentina 2.0. -- What is your 3 DREAM features? In-Reply-To: <1D607AA4-542B-11D8-88FC-000A95D87648@amug.org> Message-ID: on 1/31/04 10:21 PM, Tim Davis at timdavis@amug.org wrote: > >>> some kind of lexicographic search >>> to be able to look for "e" and find "? ? ?" etc. >>> >>> some tunable soundsalike search >>> to be able to look for "jon" and find "john, joan, jan" etc. >> >> Not sure. May be ICU library can do this. > > I also would like to be able to select lexicographic and phonetic > algorithms (ie. Soundex) for searches AND sorts. > > Additionally I would like to be able to define custom sorts of a unique > string pattern. For example, I recently was dealing with a string which > had patterned combination of strings and numbers. My result was to > break it up into three baseobject methods, and then Order By each of > those methods. It would be nice to be able to define a custom default > sort for strings/varchar to streamline use of that field. You mean callback for int Compare( v1, v2 ) -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sat Jan 31 23:11:11 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jan 31 15:11:17 2004 Subject: Valentina 2.0. -- What is your 3 DREAM features? // db.EraseOnDelete In-Reply-To: Message-ID: on 1/31/04 9:22 PM, Robert Brenstein at rjb@rz.uni-potsdam.de wrote: >> I do not understand, but what problems with ENCRYPTED ? >> >> What is bad if some ENCRYPTED data will be not erased? >> > > For encrypted it should be done by default, opposite than for > unencrypted. We discussed this last year. If it is not done, there is > a chance of inappropriate data exposure to prying eyes. But data are encrypted! What problems? Nobody can read them. Garbage. If you think that somebody can read encrypted data, Then your original encrypted data even in more danger. Hopefully, encrypted data are protected. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sat Jan 31 23:14:41 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jan 31 15:14:48 2004 Subject: Valentina 2.0. -- What is your 3 DREAM features? // TIMESTAMP In-Reply-To: Message-ID: on 1/31/04 10:41 PM, Robert Brenstein at rjb@rz.uni-potsdam.de wrote: >>>>>>> -- option to have automatic time stamping of all or specific fields >>>>>>> in a baseobject (updated only when content changes) >>>>>> >>>>>> Yes, we have add DB.Clocks(), and TIMESTAMP field. >>>>> >>>>> Is the TIMESTAMP an internal field (handled automatically by kernel) >>>>> or it is a field for us to use explicitely? Ideally, a field would >>>>> have a property "timestamp" settable through Field_SetFlag() and then >>>>> we have a call Field_GetTimestamp() to find the current value. It >>>>> should also be properly handled through SQL, so we can easily find >>>>> records with fields that were modified after specific timestamp. >>>> >>>> This is new field type. >>>> Actually it is ULLONG. >>>> >>>> It looks we have not yet polish this field type. >>> >>> So what is the advantage of this new field versus my using a normal >>> long field to store a timestamp? This is what I do now. >> >> It is intended to store INTERNAL DB CLOCKs value. >> >> Probably it will get value automatically > > But what will trigger the update? Any change to a record containting > a timestamp field? Or can it be associated with a specific field? In > other words, will the automatic process be associated with SetField > or with UpdateRecord/NewRecord? I gather it will be triggered in > either case by any call, even if the content is not truly changed. Not remember now. I will ask tomorrow. Probably any INSERT/UPDATE of record, should change it. Again, this is not polished. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From frank-list2 at mindstarprods.com Sat Jan 31 16:28:34 2004 From: frank-list2 at mindstarprods.com (Frank Schima) Date: Sat Jan 31 15:28:40 2004 Subject: Valentina 2.0. -- What is your 3 DREAM features? In-Reply-To: References: Message-ID: <6CDF30D7-5434-11D8-89C9-000A95A4E83A@mindstarprods.com> Hi Ruslan, On Jan 31, 2004, at 3:22 AM, Ruslan Zasukhin wrote: > on 1/31/04 4:36 AM, Frank Schima at frank-list2@mindstarprods.com > wrote: >> -Temporary tables > > Done on kernel level > > What you exactly mean under this feature? > Ability CREATE TABLE TMP ... > > > ------------------ > + we have made RAM based tables > + it is possible to make the whole database Vdatabase on the RAM. I was not even worried about having RAM based tables - but we do need the ability to pre-load selected tables into RAM on Server. I was just thinking of on the fly temp table creation for complex SQL selects so you can easily sub-select from it. Like this: SELECT a, b, c FROM table1, table2, table3 WHERE condition1 AND condition2... INTO new_table Then later you can DROP TABLE new_table after you are done with it. But when the server quits, it should delete the temp tables automatically. Also there must be a Server command to wipe out all temp tables. In Sybase, temp tables created in stored procedures and automatically deleted when the stored procedure ends. Sybase also has the concept of a temporary database - which is kind of a play area for your data. This brings up another dream feature - namely stored procedures. Thanks for listening! -Frank From sunshine at public.kherson.ua Sat Jan 31 23:46:39 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jan 31 15:46:47 2004 Subject: Valentina 2.0. -- What is your 3 DREAM features? In-Reply-To: <6CDF30D7-5434-11D8-89C9-000A95A4E83A@mindstarprods.com> Message-ID: on 1/31/04 11:28 PM, Frank Schima at frank-list2@mindstarprods.com wrote: >> ------------------ >> + we have made RAM based tables >> + it is possible to make the whole database Vdatabase on the RAM. > > I was not even worried about having RAM based tables - but we do need > the ability to pre-load selected tables into RAM on Server. RAM tables are important as RESULT of SQL query, with small number of rows. E.g. COUNT(*) > I was just thinking of on the fly temp table creation for complex SQL > selects so you can easily sub-select from it. Like this: > > SELECT a, b, c > FROM table1, table2, table3 > WHERE condition1 AND condition2... > INTO new_table Frank, this can be done right now in 1.x using INSERT ... (SELECT) Something exist for such task. Does in above query, DBMS should self create new TMP table according cursor fields? Or that new_table must be prepared manually before query? > Then later you can DROP TABLE new_table after you are done with it. But > when the server quits, it should delete the temp tables automatically. Of course. > Also there must be a Server command to wipe out all temp tables. In > Sybase, temp tables created in stored procedures and automatically > deleted when the stored procedure ends. Sybase also has the concept of > a temporary database - which is kind of a play area for your data. > > This brings up another dream feature - namely stored procedures. Yes I know. After 2.0, I think we will put all our efforts on transactions stored procedures in this or that way. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From rjb at rz.uni-potsdam.de Sat Jan 31 22:48:36 2004 From: rjb at rz.uni-potsdam.de (Robert Brenstein) Date: Sat Jan 31 16:01:43 2004 Subject: Valentina 2.0. -- What is your 3 DREAM features? // db.EraseOnDelete In-Reply-To: References: Message-ID: >on 1/31/04 9:22 PM, Robert Brenstein at rjb@rz.uni-potsdam.de wrote: > >>> I do not understand, but what problems with ENCRYPTED ? >>> >>> What is bad if some ENCRYPTED data will be not erased? >>> >> >> For encrypted it should be done by default, opposite than for >> unencrypted. We discussed this last year. If it is not done, there is >> a chance of inappropriate data exposure to prying eyes. > >But data are encrypted! > >What problems? > >Nobody can read them. Garbage. > >If you think that somebody can read encrypted data, >Then your original encrypted data even in more danger. > >Hopefully, encrypted data are protected. As far as I know, Valentian encrypts only current data. Since data may be left in records deleted before encryption that data may remain visible. Or does valentina encrypt now all records, regardless whether they are deleted or not? Robert From rjb at rz.uni-potsdam.de Sat Jan 31 22:50:25 2004 From: rjb at rz.uni-potsdam.de (Robert Brenstein) Date: Sat Jan 31 16:01:52 2004 Subject: Valentina 2.0. -- What is your 3 DREAM features? // TIMESTAMP In-Reply-To: References: Message-ID: >on 1/31/04 10:41 PM, Robert Brenstein at rjb@rz.uni-potsdam.de wrote: > >>>>>>>> -- option to have automatic time stamping of all or specific fields >>>>>>>> in a baseobject (updated only when content changes) >>>>>>> >>>>>>> Yes, we have add DB.Clocks(), and TIMESTAMP field. >>>>>> >>>>>> Is the TIMESTAMP an internal field (handled automatically by kernel) >>>>>> or it is a field for us to use explicitely? Ideally, a field would >>>>>> have a property "timestamp" settable through Field_SetFlag() and then >>>>>> we have a call Field_GetTimestamp() to find the current value. It >>>>>> should also be properly handled through SQL, so we can easily find >>>>>> records with fields that were modified after specific timestamp. >>>>> >>>>> This is new field type. >>>>> Actually it is ULLONG. >>>>> >>>>> It looks we have not yet polish this field type. >>>> >>>> So what is the advantage of this new field versus my using a normal >>>> long field to store a timestamp? This is what I do now. >>> >>> It is intended to store INTERNAL DB CLOCKs value. >>> >>> Probably it will get value automatically >> >> But what will trigger the update? Any change to a record containting >> a timestamp field? Or can it be associated with a specific field? In >> other words, will the automatic process be associated with SetField >> or with UpdateRecord/NewRecord? I gather it will be triggered in >> either case by any call, even if the content is not truly changed. > >Not remember now. >I will ask tomorrow. > >Probably any INSERT/UPDATE of record, should change it. > >Again, this is not polished. > Okay. You know what I am after. In the meantime, I have to implement this myself as I need it now :) Robert From erichg at mcmm.com Sat Jan 31 23:43:01 2004 From: erichg at mcmm.com (Erich Geiersberger) Date: Sat Jan 31 17:08:03 2004 Subject: [VServer] OSX Client reconnect In-Reply-To: <003001c3e7d4$b4538000$731026c3@giv> References: <003001c3e7d4$b4538000$731026c3@giv> Message-ID: > > > > - When a database disconnect due to time limit of server occurs we > > > > are getting severe crashes of the director app (error 9). > > > > The question is: What do we need to do after such a disconnect on >OSX? > > > > > > > What procedure is needed to reconnect the client? > > > > > >Yes you can reconnect. >When the client detected that server disconnected it due to the timeout, >first of all it(client) closes connection to the server, and then sets error >code 1023: Connection timed out. >So to reconnect in such case you can simply open it again with the >same set of parameters, i.e. > OpenDataBase(); >But keep in mind, that all your stored references to all database objects >(such like cursors, fields, tables) became invalid by that time, when you >got 1023 error. OK I try it that way. > > > > > >BTW, if you EXPECT to get long time on query, e.g. Db is big, query is > > >complex, you can simply set timeout much longer to avoid such disconnect. > > >V4MD have commend to change timeout on client. > > > > I would like to. > > But anytime the disconnect occurs, my App crashes, no matter what I try to >do. > > I tried: > > - close database and shutdownvalentina > > - only shutdownvalentina > > - nothing >You DO NOT need to call any of these routines since at this moment >connection already closed. OK. > > > > In each and any of these cases, before I even try to reconnect I get > > an error 9 and poof... >What is error 9? It does not seems like a socket error code... >Is this a MAC-specific error code? This is possibly a result from an attempt to create a cursor while the connection has already been terminated by the host. I found some lines of code in a MIAW which might have caused this. Erich From frank-list2 at mindstarprods.com Sat Jan 31 18:14:47 2004 From: frank-list2 at mindstarprods.com (Frank Schima) Date: Sat Jan 31 17:14:53 2004 Subject: Valentina 2.0. -- What is your 3 DREAM features? In-Reply-To: References: Message-ID: <4385FCEF-5443-11D8-89C9-000A95A4E83A@mindstarprods.com> On Jan 31, 2004, at 4:46 PM, Ruslan Zasukhin wrote: > on 1/31/04 11:28 PM, Frank Schima at frank-list2@mindstarprods.com > wrote: > >> I was just thinking of on the fly temp table creation for complex SQL >> selects so you can easily sub-select from it. Like this: >> >> SELECT a, b, c >> FROM table1, table2, table3 >> WHERE condition1 AND condition2... >> INTO new_table > > Frank, this can be done right now in 1.x using > INSERT ... (SELECT) > > Something exist for such task. > > > Does in above query, DBMS should self create new TMP table according > cursor > fields? Or that new_table must be prepared manually before query? The DBMS should automatically create a new TMP table based on the fields SELECTed in the Query. That's what I meant by "on the fly" table creation. Best regards, Frank From frank-list2 at mindstarprods.com Sat Jan 31 18:22:32 2004 From: frank-list2 at mindstarprods.com (Frank Schima) Date: Sat Jan 31 17:22:36 2004 Subject: Valentina 2.0. -- What is your 3 DREAM features? In-Reply-To: References: Message-ID: <5875C1F8-5444-11D8-89C9-000A95A4E83A@mindstarprods.com> Hi Erich, On Jan 31, 2004, at 6:13 PM, Erich Geiersberger wrote: > - Better documentation > I know it's not easy during development, but I would love to have a > complete list of error codes including system errors. I have a database on my web site with all Valentina error codes. http://homepage.mac.com/macsforever2000/visql/errors_db.hqx Best regards, Frank From r.hildebrandt at sbt.fr Wed Jan 28 08:49:24 2004 From: r.hildebrandt at sbt.fr (Roland Hildebrandt) Date: Sun Feb 1 01:30:46 2004 Subject: V4MD 1.10 Message-ID: <004601c3e573$3f91def0$3a01a8c0@sbt> Hi Ruslan ! It seems the problem depends of the type of field : Long : (!) Table has X physical records but field has 256 Byte : (!) Table has X physical records but field has 1024 Datetime: (!) Table has X physical records but field has 128 String : (!) Table has X physical records but field has (depend of string length) Float : (!) Table has X physical records but field has 256 Where X is the number of records created in the table. Varchar fields never has this problem. I think it will work all right for boolean fields but I haven't tested it. It seems this is linked with the segment size ??? In fact we use a quite small segment size : 1024 when creating our bases because we need them to use few disk space and we have a lot (often more than 50) of fields in each table. Thank a lot for all your answers !!! Best regards SBT / HAPPYneuron Roland HILDEBRANDT ----- Original Message ----- From: "Ruslan Zasukhin" To: Sent: Tuesday, January 27, 2004 11:26 AM Subject: Re: V4MD 1.10 > on 1/27/04 11:15 AM, Roland Hildebrandt at r.hildebrandt@sbt.fr wrote: > > > Problem 3 : > > > > When creating a database and inserting data, we quickly get this message for a > > lot of fields when we make a database diagnose : > > > > (!) Table has 6 physical records but field has 256 > > > > This creates no problems when using the database but we don't understand this > > message. > > IF this is a Boolean field, then Diagnose is WRONG. > > > It make it also more difficult to detect if the database is corrupted because > > there are always problems found when we call Database diagnose. > > > -- > Best regards, > Ruslan Zasukhin [ I feel the need...the need for speed ] > ------------------------------------------------------------- > e-mail: ruslan@paradigmasoft.com > web: http://www.paradigmasoft.com > > To subscribe to the Valentina mail list go to: > http://lists.macserve.net/mailman/listinfo/valentina > ------------------------------------------------------------- > > _______________________________________________ > Valentina mailing list > Valentina@lists.macserve.net > http://lists.macserve.net/mailman/listinfo/valentina