Discussion:
[PATCH 3/3] reindent
Yuriy M. Kaminskiy
2012-03-24 16:21:04 UTC
Permalink
---
dbdimp.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dbdimp.c b/dbdimp.c
--- a/dbdimp.c
+++ b/dbdimp.c
@@ -145,8 +145,8 @@ sqlite_set_result(pTHX_ sqlite3_context *context, SV *result, int is_error)
if ( (UV)(sqlite3_int64)UV_MAX == UV_MAX )
sqlite3_result_int64( context, (sqlite3_int64)SvUV( result ) );
else {
- s = SvPV(result, len);
- sqlite3_result_text( context, s, len, SQLITE_TRANSIENT );
+ s = SvPV(result, len);
+ sqlite3_result_text( context, s, len, SQLITE_TRANSIENT );
}
}
else if ( SvIOK(result) ) {
--
1.7.6.3


--------------090502030709000703090904--
Yuriy M. Kaminskiy
2012-04-03 15:04:12 UTC
Permalink
---
dbdimp.c | 34 +++++++++++++++++-----------------
1 files changed, 17 insertions(+), 17 deletions(-)

diff --git a/dbdimp.c b/dbdimp.c
index 779ec18..86825fd 100644
--- a/dbdimp.c
+++ b/dbdimp.c
@@ -1198,24 +1198,24 @@ sqlite_bind_ph(SV *sth, imp_sth_t *imp_sth,
numtype = -3;
}
else {
- if (imp_dbh->unicode) {
- sv_utf8_upgrade(value);
- }
- data = SvPV(value, len);
+ if (imp_dbh->unicode) {
+ sv_utf8_upgrade(value);
+ }
+ data = SvPV(value, len);

- /*
- * XXX: For backward compatibility, it'd be better to
- * accept a value like " 4" as an integer for an integer
- * type column (see t/19_bindparam.t), at least when
- * we explicitly specify its type. However, we should
- * keep spaces when we just guess.
- */
- if (imp_dbh->see_if_its_a_number) {
- numtype = sqlite_is_number(aTHX_ data, TRUE);
- }
- else if (sqlite_type == SQLITE_INTEGER || sqlite_type == SQLITE_FLOAT) {
- numtype = sqlite_is_number(aTHX_ data, FALSE);
- }
+ /*
+ * XXX: For backward compatibility, it'd be better to
+ * accept a value like " 4" as an integer for an integer
+ * type column (see t/19_bindparam.t), at least when
+ * we explicitly specify its type. However, we should
+ * keep spaces when we just guess.
+ */
+ if (imp_dbh->see_if_its_a_number) {
+ numtype = sqlite_is_number(aTHX_ data, TRUE);
+ }
+ else if (sqlite_type == SQLITE_INTEGER || sqlite_type == SQLITE_FLOAT) {
+ numtype = sqlite_is_number(aTHX_ data, FALSE);
+ }
}

if (numtype == 1) {
--
1.7.6.3



--------------050402090006010407020006--
Loading...