comparison Core/SQLite/FunctionContext.h @ 2302:f31dfb131dee

fix backward compatibility with SQLite < 3.19.0
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 10 Jul 2017 11:27:55 +0200
parents bde58ce4b41c
children fa5ad4368fe3
comparison
equal deleted inserted replaced
2301:bde58ce4b41c 2302:f31dfb131dee
34 34
35 #pragma once 35 #pragma once
36 36
37 #include "Statement.h" 37 #include "Statement.h"
38 38
39 struct sqlite3_context;
40 struct sqlite3_value;
41
42 namespace Orthanc 39 namespace Orthanc
43 { 40 {
44 namespace SQLite 41 namespace SQLite
45 { 42 {
46 class FunctionContext : public NonCopyable 43 class FunctionContext : public NonCopyable
48 friend class Connection; 45 friend class Connection;
49 46
50 private: 47 private:
51 struct sqlite3_context* context_; 48 struct sqlite3_context* context_;
52 unsigned int argc_; 49 unsigned int argc_;
53 struct sqlite3_value** argv_; 50 Internals::SQLiteValue** argv_;
54 51
55 void CheckIndex(unsigned int index) const; 52 void CheckIndex(unsigned int index) const;
56 53
57 public: 54 public:
58 FunctionContext(struct sqlite3_context* context, 55 FunctionContext(struct sqlite3_context* context,
59 int argc, 56 int argc,
60 struct sqlite3_value** argv); 57 Internals::SQLiteValue** argv);
61 58
62 ColumnType GetColumnType(unsigned int index) const; 59 ColumnType GetColumnType(unsigned int index) const;
63 60
64 unsigned int GetParameterCount() const 61 unsigned int GetParameterCount() const
65 { 62 {