comparison Framework/PostgreSQL/PostgreSQLStatement.h @ 214:ab96698c73a3

removed useless information about read-only in ITransaction and IPrecompiledStatement
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 25 Mar 2021 13:56:26 +0100
parents 3236894320d6
children 16aac0287485
comparison
equal deleted inserted replaced
213:c2e4a909de0e 214:ab96698c73a3
45 class ResultWrapper; 45 class ResultWrapper;
46 class Inputs; 46 class Inputs;
47 friend class PostgreSQLResult; 47 friend class PostgreSQLResult;
48 48
49 PostgreSQLDatabase& database_; 49 PostgreSQLDatabase& database_;
50 bool readOnly_;
51 std::string id_; 50 std::string id_;
52 std::string sql_; 51 std::string sql_;
53 std::vector<unsigned int /*Oid*/> oids_; 52 std::vector<unsigned int /*Oid*/> oids_;
54 std::vector<int> binary_; 53 std::vector<int> binary_;
55 boost::shared_ptr<Inputs> inputs_; 54 boost::shared_ptr<Inputs> inputs_;
64 63
65 void* /* PGresult* */ Execute(); 64 void* /* PGresult* */ Execute();
66 65
67 public: 66 public:
68 PostgreSQLStatement(PostgreSQLDatabase& database, 67 PostgreSQLStatement(PostgreSQLDatabase& database,
69 const std::string& sql, 68 const std::string& sql);
70 bool readOnly);
71 69
72 PostgreSQLStatement(PostgreSQLDatabase& database, 70 PostgreSQLStatement(PostgreSQLDatabase& database,
73 const Query& query); 71 const Query& query);
74 72
75 ~PostgreSQLStatement(); 73 ~PostgreSQLStatement();
76 74
77 virtual bool IsReadOnly() const ORTHANC_OVERRIDE
78 {
79 return readOnly_;
80 }
81
82 void DeclareInputInteger(unsigned int param); 75 void DeclareInputInteger(unsigned int param);
83 76
84 void DeclareInputInteger64(unsigned int param); 77 void DeclareInputInteger64(unsigned int param);
85 78
86 void DeclareInputString(unsigned int param); 79 void DeclareInputString(unsigned int param);