[libgda/gtk3] GdaDataSelect: fixed access mode reporting
- From: Vivien Malerba <vivien src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda/gtk3] GdaDataSelect: fixed access mode reporting
- Date: Wed, 9 Feb 2011 20:35:27 +0000 (UTC)
commit ed1181067b04d3373aeee45eff42058bb262343d
Author: Vivien Malerba <malerba gnome-db org>
Date: Thu Jan 27 21:04:36 2011 +0100
GdaDataSelect: fixed access mode reporting
libgda/gda-data-select.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/libgda/gda-data-select.c b/libgda/gda-data-select.c
index 75cd817..aa7c293 100644
--- a/libgda/gda-data-select.c
+++ b/libgda/gda-data-select.c
@@ -1,5 +1,5 @@
/* GDA library
- * Copyright (C) 2008 - 2010 The GNOME Foundation.
+ * Copyright (C) 2008 - 2011 The GNOME Foundation.
*
* AUTHORS:
* Vivien Malerba <malerba gnome-db org>
@@ -1634,7 +1634,8 @@ gda_data_select_get_access_flags (GdaDataModel *model)
flags = GDA_DATA_MODEL_ACCESS_CURSOR_FORWARD;
}
- if (! imodel->priv->sh->modif_internals->safely_locked) {
+ if (! imodel->priv->sh->modif_internals->safely_locked &&
+ (imodel->priv->sh->usage_flags & GDA_DATA_MODEL_ACCESS_RANDOM)) {
if (imodel->priv->sh->modif_internals->modif_stmts [UPD_QUERY])
flags |= GDA_DATA_MODEL_ACCESS_UPDATE;
if (imodel->priv->sh->modif_internals->modif_stmts [INS_QUERY])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]