sqlite3: Less obtrusive debug output.

pull/118/head^2
Paul Sokolovsky 2014-07-21 01:33:46 +03:00
rodzic bf811614cf
commit ad7b1ad64e
3 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -1,4 +1,4 @@
srctype = micropython-lib
type = module
version = 0.2
version = 0.2.1
author = Paul Sokolovsky

Wyświetl plik

@ -6,7 +6,7 @@ from setuptools import setup
setup(name='micropython-sqlite3',
version='0.2',
version='0.2.1',
description='sqlite3 module for MicroPython',
long_description="This is a module reimplemented specifically for MicroPython standard library,\nwith efficient and lean design in mind. Note that this module is likely work\nin progress and likely supports just a subset of CPython's corresponding\nmodule. Please help with the development if you are interested in this\nmodule.",
url='https://github.com/micropython/micropython/issues/405',

Wyświetl plik

@ -88,9 +88,9 @@ class Cursor:
s = sqlite3_prepare(self.h, sql, -1, b, None)
check_error(self.h, s)
self.stmnt = int.from_bytes(b)
print("stmnt", self.stmnt)
#print("stmnt", self.stmnt)
self.num_cols = sqlite3_column_count(self.stmnt)
print("num_cols", self.num_cols)
#print("num_cols", self.num_cols)
# If it's not select, actually execute it here
# num_cols == 0 for statements which don't return data (=> modify it)
if not self.num_cols: