You are not logged in Log in Join
You are here: Home » Members » jim » ZODB » GetCurrent » wikipage_view

Log in
Name

Password

 
 
FrontPage » RelationalStorage » BrewingIdeas »

GetCurrent

def GetCurrent (self, oid):
    ob = {sql}
    if not current.data and current.dataserial:
        actual = GetHistorical (oid, current.dataserial)
        ob.data = actual.data
    return ob
SQL:
SELECT z_oid, z_serial, z_pre, z_status, z_data, z_datalen, z_version, z_nv, z_dataserial
FROM zodb_data
WHERE z_oid = ?
AND z_status = c