[Pkg-owncloud-commits] [owncloud-client] 304/470: SqlQuery: Add method errorId() to get the numeric error code.

Sandro Knauß hefee-guest at moszumanska.debian.org
Thu May 12 16:25:17 UTC 2016


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit d5f1d1c6b29be3802f215779034b0ab5b0df5e69
Author: Klaas Freitag <freitag at owncloud.com>
Date:   Mon Apr 11 17:34:59 2016 +0200

    SqlQuery: Add method errorId() to get the numeric error code.
---
 src/libsync/ownsql.cpp | 5 +++++
 src/libsync/ownsql.h   | 2 ++
 2 files changed, 7 insertions(+)

diff --git a/src/libsync/ownsql.cpp b/src/libsync/ownsql.cpp
index faa731b..4efa187 100644
--- a/src/libsync/ownsql.cpp
+++ b/src/libsync/ownsql.cpp
@@ -348,6 +348,11 @@ QString SqlQuery::error() const
     return _error;
 }
 
+int SqlQuery::errorId() const
+{
+    return _errId;
+}
+
 QString SqlQuery::lastQuery() const
 {
     return _sql;
diff --git a/src/libsync/ownsql.h b/src/libsync/ownsql.h
index 2cda001..0283791 100644
--- a/src/libsync/ownsql.h
+++ b/src/libsync/ownsql.h
@@ -65,10 +65,12 @@ public:
 
     ~SqlQuery();
     QString error() const;
+    int  errorId() const;
 
     /// Checks whether the value at the given column index is NULL
     bool nullValue(int index);
 
+
     QString stringValue(int index);
     int intValue(int index);
     quint64 int64Value(int index);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list