| От | Christopher Smith |
|---|---|
| Тема | Re: Problems ensuring uniqueness? |
| Дата | |
| Msg-id | 992901470.6585.2.camel@rivest.xdrive.com обсуждение исходный текст |
| Ответ на | Re: Problems ensuring uniqueness? (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-sql |
On 18 Jun 2001 17:42:15 -0400, Tom Lane wrote: > Christopher Smith <x@xman.org> writes: > Um ... surely that should be "if count > 0" ? Or was that just a > transcription error? > > This approach certainly ought to work as desired given the exclusive > lock, so a silly typo seems like a plausible explanation... Sorry, it is indeed a transcription error (sadly). The actual line in question looks like this in Java: boolean answer = resultSetCount.getInt(1) > 0; I accidently transcribed the field offset instead of the comparison constant.... probably should split that up into two lines of code to avoid confusion like this... --Chris
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера