[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [coldsync-hackers] finding a suitable record id for appendrecord
- To: coldsync-hackers at lusars dot net
- Subject: Re: [coldsync-hackers] finding a suitable record id for appendrecord
- From: coldsync-hackers at oldach dot net (Helge Oldach)
- Date: Tue, 16 Apr 2002 18:14:11 +0200 (CEST)
- In-Reply-To: <003301c1e543$6d58f300$3200a8c0@jecinc.on.ca> from Brian Johnson at "Apr 16, 2002 8:37: 8 am"
- Reply-To: coldsync-hackers at lusars dot net
- Sender: owner-coldsync-hackers at lusars dot net
Brian Johnson:
> I keep running into the situation where I need to know the record id of a
> new record I'm adding (to track it for syncing to another data source)
>
> But I'm starting to get into a conduit where I realistically could very
> quickly get to uppermost id number (around 32000 isn't it - it was post
Actually the record ID is three bytes unsigned: 0xffffff is the largest
record ID, decimal 16777215. You probably have some space for adding new
ones... All applications I have seen just peek at the largest ID and add
on top of that number.
If the database has a valid AppInfo block this already holds the largest
used ID: $appinfo->{lastUniqueID}.
Regards,
Helge
--
This message was sent through the coldsync-hackers mailing list. To remove
yourself from this mailing list, send a message to majordomo@thedotin.net
with the words "unsubscribe coldsync-hackers" in the message body. For more
information on Coldsync, send mail to coldsync-hackers-owner@thedotin.net.