[glom] The result is a GdaNumeric
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom] The result is a GdaNumeric
- Date: Fri, 17 Jun 2011 08:43:03 +0000 (UTC)
commit cf09ac0cb26d11b42d98b7afb49a92fee931f7a9
Author: Murray Cumming <murrayc murrayc com>
Date: Fri Jun 17 10:11:34 2011 +0200
The result is a GdaNumeric
.../repository_analyzer_begin_scan.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/examples/example_scripts/repository_analyzer_begin_scan.py b/examples/example_scripts/repository_analyzer_begin_scan.py
index dbbfd99..2c61d3a 100644
--- a/examples/example_scripts/repository_analyzer_begin_scan.py
+++ b/examples/example_scripts/repository_analyzer_begin_scan.py
@@ -1383,7 +1383,8 @@ def get_next_automatic_id_number(table_name, field_name):
if(max_id_value == None): #This seems to be the result when there are no records. I guess it is a NULL value in the result.
max_id = 0
else:
- max_id = float(max_id_value) #TODO: Make sure this only converts in the C locale
+ #It is a GdaNumeric:
+ max_id = float(max_id_value.number) #TODO: Make sure this only converts in the C locale
max_id += 1
return max_id
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]