Skip to content

Commit e422fa2

Browse files
v0.7.5
1 parent c5f72d0 commit e422fa2

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<img src="https://static.wikia.nocookie.net/arnelify/images/c/c8/Arnelify-logo-2024.png/revision/latest?cb=20240701012515" style="width:336px;" alt="Arnelify Logo" />
22

3-
![Arnelify ORM for C++](https://img.shields.io/badge/Arnelify%20ORM%20for%20C++-0.7.4-yellow) ![C++](https://img.shields.io/badge/C++-2b-red) ![G++](https://img.shields.io/badge/G++-14.2.0-blue) ![C-Lang](https://img.shields.io/badge/CLang-14.0.6-blue)
3+
![Arnelify ORM for C++](https://img.shields.io/badge/Arnelify%20ORM%20for%20C++-0.7.5-yellow) ![C++](https://img.shields.io/badge/C++-2b-red) ![G++](https://img.shields.io/badge/G++-14.2.0-blue) ![C-Lang](https://img.shields.io/badge/CLang-14.0.6-blue)
44

55
## 🚀 About
66
**Arnelify® ORM for C++** - is a minimalistic dynamic library which is an ORM written in C and C++.
@@ -53,7 +53,7 @@ This software is licensed under the <a href="https://github.com/arnelify/arnelif
5353
Join us to help improve this software, fix bugs or implement new functionality. Active participation will help keep the software up-to-date, reliable, and aligned with the needs of its users.
5454

5555
## ⭐ Release Notes
56-
Version 0.7.4 - Minimalistic dynamic library
56+
Version 0.7.5 - Minimalistic dynamic library
5757

5858
We are excited to introduce the Arnelify ORM for C++ dynamic library! Please note that this version is raw and still in active development.
5959

src/mysql/query/index.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,9 @@ class MySQLQuery {
143143
}
144144

145145
const bool hasCondition() {
146+
const bool isNull = this->query.ends_with("IS NULL");
147+
if (isNull) return true;
148+
146149
std::vector<std::string> tokens;
147150
std::istringstream stream(this->query);
148151
std::string token;
@@ -153,8 +156,6 @@ class MySQLQuery {
153156
if (tokens.size() < 3) return false;
154157

155158
const std::string& op = tokens[tokens.size() - 2];
156-
const std::string& rhs = tokens[tokens.size() - 1];
157-
if (rhs == "IS NULL") return true;
158159
return isOperator(op);
159160
}
160161

0 commit comments

Comments
 (0)