Opened 10 years ago

Closed 10 years ago

#195 closed defect (fixed)

ISBNs should not become INTs

Reported by: simon Owned by: dstillman
Priority: minor Milestone: 1.0 Beta 1
Component: data layer Version: 1.0
Keywords: Cc:

Description

just tried to scrape a book with the ISBN 3881292543. since this number is greater than the theoretical maximum for a signed 32 bit integer (2147483648), it somehow became negative (-413674753). i'd imagine we could have the same problem with long accession numbers. any easy way around this?

Change History (1)

comment:1 Changed 10 years ago by dstillman

  • Resolution set to fixed
  • Status changed from new to closed

(In [504]) Fixes #195, ISBNs should not become INTs

The ISBNs were actually stored fine in the database--it was just that the DB methods were using getInt32() to retrieve them. Using getInt64() instead.

Note: See TracTickets for help on using tickets.