|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
From 3e7b595ee9080b71930243d6e56268a2a8d08185 Mon Sep 17 00:00:00 2001
|
|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
From: jordi fita i mas <jfita@infoblitz.com>
|
|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
Date: Sat, 25 Apr 2020 23:00:43 +0200
|
|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
Subject: [PATCH 08/22] Expand feature test for buffered cursors
|
|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
MIME-Version: 1.0
|
|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
Content-Type: text/plain; charset=UTF-8
|
|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
Content-Transfer-Encoding: 8bit
|
|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
|
|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
Summary:
|
|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
When testing a driver’s cached cursors it is interesting to see whether
|
|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
the cursor actually can go back to the first record and then return the
|
|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
values for all of them again.
|
|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
|
|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
Checking only the return value of KDbCursor::moveFirst and
|
|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
KDbCursor::moveLast is not enough to see if it works, because they just
|
|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
return true even though the driver does not change anything.
|
|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
|
|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
Reviewers: staniek, piggz
|
|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
|
|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
Subscribers: Kexi-Devel-list
|
|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
|
|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
Tags: #kdb
|
|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
|
|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
FIXED-IN:3.2.1
|
|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
|
|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
Differential Revision: https://phabricator.kde.org/D29185
|
|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
---
|
|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
tests/features/cursors_test.h | 23 ++++++++++++++++++-----
|
|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
1 file changed, 18 insertions(+), 5 deletions(-)
|
|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
|
|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
diff --git a/tests/features/cursors_test.h b/tests/features/cursors_test.h
|
|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
index 9ea968e1..5691158e 100644
|
|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
--- a/tests/features/cursors_test.h
|
|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
+++ b/tests/features/cursors_test.h
|
|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
@@ -46,11 +46,24 @@ int cursorsTest()
|
|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
qDebug() << "KDbCursor::moveFirst() ---------------------";
|
|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
qDebug() << "-- KDbCursor::moveFirst() == " << cursor->moveFirst();
|
|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
|
|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
- /* qDebug()<<"KDbCursor::moveNext() == "<<cursor->moveNext();
|
|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
- qDebug()<<"KDbCursor::moveNext() == "<<cursor->moveNext();
|
|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
- qDebug()<<"KDbCursor::moveNext() == "<<cursor->moveNext();
|
|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
- qDebug()<<"KDbCursor::moveNext() == "<<cursor->moveNext();
|
|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
- qDebug()<<"KDbCursor::eof() == "<<cursor->eof();*/
|
|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
+ if (cursor_options & KDbCursor::Option::Buffered) {
|
|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
+ qDebug() << "KDbCursor Buffered -------------------------";
|
|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
+ qDebug() << "-- KDbCursor::value(0) == " << cursor->value(0);
|
|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
+ qDebug() << "-- KDbCursor::moveNext() == " << cursor->moveNext();
|
|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
+ qDebug() << "-- KDbCursor::value(0) == " << cursor->value(0);
|
|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
+ qDebug() << "-- KDbCursor::moveNext() == "<< cursor->moveNext();
|
|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
+ qDebug() << "-- KDbCursor::value(0) == " << cursor->value(0);
|
|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
+ qDebug() << "-- KDbCursor::moveNext() == "<< cursor->moveNext();
|
|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
+ qDebug() << "-- KDbCursor::value(0) == " << cursor->value(0);
|
|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
+ qDebug() << "-- KDbCursor::moveNext() == "<< cursor->moveNext();
|
|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
+ qDebug() << "-- KDbCursor::value(0) == " << cursor->value(0);
|
|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
+ qDebug() << "-- KDbCursor::movePrev() == "<< cursor->movePrev();
|
|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
+ qDebug() << "-- KDbCursor::value(0) == " << cursor->value(0);
|
|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
+ qDebug() << "-- KDbCursor::moveNext() == "<< cursor->moveNext();
|
|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
+ qDebug() << "-- KDbCursor::value(0) == " << cursor->value(0);
|
|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
+ qDebug() << "-- KDbCursor::eof() == " << cursor->eof();
|
|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
+ }
|
|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
+
|
|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
conn->deleteCursor(cursor);
|
|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
|
|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
return 0;
|
|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
--
|
|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
2.31.1
|
|
![](https://seccdn.libravatar.org/avatar/082b19ca4e231b0f1c8cc127e76ebbc2c8d4915ed5e40f8dad503c31c9b743c6?s=16&d=retro) |
b85a01a |
|