Hi,

I recently upgraded my product from python 2.2 to 2.3.2 and did some
minor clean up at the same time in preparation for the next added
feature. I wasn't getting the correct test results and I have been
tracking bugs for days, which I assumed were typos.  Instead I found
that Mk4py.dll for 2.3.2 no longer handles appending of PyRowRef's,
which my complex data manipulation application makes heavy use of.  In
the past, matching attribute names would get their values added to the
new row.  Now it adds the row, with all attributes set to '' (or 0).

Is this a bug?  Can I do this at all with 2.3.2?  Am I doing something
wrong?

mk.version 2.4.9.2 on both
2.3.2 mk4py.dll 229,376 bytes
2.2.1 mk4py.dll 225.280 bytes

===== working example =====
>>> import sys
>>> sys.version
'2.2.1 (#34, Apr  9 2002, 19:34:33) [MSC 32 bit (Intel)]'
>>> mk.version
'2.4.9.2'
>>> db=mk.storage()
>>> vw = db.getas('a[s,i:i]')
>>> vw2 = db.getas('b[s,i:i]')
>>> vw2.append(('test',999))
0
>>> mk.dump(vw2)
 s     i
 ----  ---
 test  999
 ----  ---
 Total: 1 rows
>>> vw.append(vw2[0])
0
>>> mk.dump(vw)
 s     i
 ----  ---
 test  999
 ----  ---
 Total: 1 rows

=========== non-working example =======
Python 2.3.2 (#49, Oct  2 2003, 20:02:00) [MSC v.1200 32 bit (Intel)]
Type "help", "copyright", "credits" or "license" for more information.
>>> import mk
>>> db=mk.storage()
>>> vw = db.getas('a[s,i:i]')
>>> vw2 = db.getas('b[s,i:i]')
>>> vw2.append(('test',999))
0
>>> vw.append(vw2[0])
0
>>> mk.dump(vw)
 s  i
 -  -
    0
 -  -
 Total: 1 rows
>>> mk.version
'2.4.9.2'
>>>


-- 
Thanks,

Jerry McRae
MetaKit 2.4.9.2, Python 2.3.2, WinXP, 796M RAM

_____________________________________________
Metakit mailing list  -  [EMAIL PROTECTED]
http://www.equi4.com/mailman/listinfo/metakit

Reply via email to