[Python-checkins] r69235 - sandbox/trunk/dbm_sqlite/alt/dbsqlite.py

Antoine Pitrou solipsis at pitrou.net
Tue Feb 3 16:04:20 CET 2009


<raymond.hettinger> writes:
> 
> +        GET_LEN =  'SELECT MAX(ROWID) FROM shelf'   # returns None if count
is zero

Does this approach work on tables which have had some rows deleted?
Something like "SELECT COUNT(key)" looks safer.





More information about the Python-checkins mailing list