From: Joel Fradkin <jfradkin@wazagua.com>
To: pgsql-sql@postgresql.org
Subject: getting duplicate number is there a
Date: Mon, 16 May 2005 17:36:21 -0400
Message-ID: <000e01c55a5f$4d912d00$797ba8c0@jfradkin> (raw)
I was using SET TRANSACTION ISOLATION LEVEL SERIALIZABLE in MSSQL.
Is there something similar in postgres to ensure its not in the middle of
being updated?
sql = "SELECT COUNT(*) FROM tblcase WHERE LocationID = " &
intLocationID & _
" and substr(casenum,length(casenum)-1,2) = '" &
right(year(date),2) & "' AND clientnum = '" & _
chrClientNum & "'"
I will add a select just before doing the insert to see if this helps, its
not happening a bunch, but 5 6 times a day is still an issue for me.
I use the count as a segment of my case number so each time a new case is
entered the count goes up for that location for that year.
Joel Fradkin
Wazagua, Inc.
2520 Trailmate Dr
Sarasota, Florida 34243
Tel. 941-753-7111 ext 305
jfradkin@wazagua.com
www.wazagua.com
Powered by Wazagua
Providing you with the latest Web-based technology & advanced tools.
C 2004. WAZAGUA, Inc. All rights reserved. WAZAGUA, Inc
This email message is for the use of the intended recipient(s) and may
contain confidential and privileged information. Any unauthorized review,
use, disclosure or distribution is prohibited. If you are not the intended
recipient, please contact the sender by reply email and delete and destroy
all copies of the original message, including attachments.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: jfradkin@wazagua.com
Subject: Re: getting duplicate number is there a
In-Reply-To: <000e01c55a5f$4d912d00$797ba8c0@jfradkin>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox