From d6ff709f459b532e1c4cc85bed5402d5a271aa3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Gonz=C3=A1lez?= Date: Thu, 29 Nov 2018 10:07:53 +0100 Subject: [PATCH] Fix a bug at XSD files and PoolSQL::exist method (#2651) --- share/doc/xsd/acct.xsd | 1 + share/doc/xsd/vm.xsd | 2 + share/doc/xsd/vm_pool.xsd | 97 +++++++++++++++++++++++++++++++++++---- src/pool/PoolSQL.cc | 2 +- 4 files changed, 92 insertions(+), 10 deletions(-) diff --git a/share/doc/xsd/acct.xsd b/share/doc/xsd/acct.xsd index 8f45cf13e5..b29ffa16c9 100644 --- a/share/doc/xsd/acct.xsd +++ b/share/doc/xsd/acct.xsd @@ -152,6 +152,7 @@ + diff --git a/share/doc/xsd/vm.xsd b/share/doc/xsd/vm.xsd index 541df13df4..ee96e8477b 100644 --- a/share/doc/xsd/vm.xsd +++ b/share/doc/xsd/vm.xsd @@ -92,6 +92,7 @@ + @@ -199,6 +200,7 @@ + diff --git a/share/doc/xsd/vm_pool.xsd b/share/doc/xsd/vm_pool.xsd index ce73df84ab..9676ec8748 100644 --- a/share/doc/xsd/vm_pool.xsd +++ b/share/doc/xsd/vm_pool.xsd @@ -1,12 +1,91 @@ - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + + + + diff --git a/src/pool/PoolSQL.cc b/src/pool/PoolSQL.cc index f46af50be1..7261615905 100644 --- a/src/pool/PoolSQL.cc +++ b/src/pool/PoolSQL.cc @@ -225,7 +225,7 @@ void PoolSQL::exist(const string& id_str, std::set& id_list) std::set::iterator iterator; one_util::split_unique(id_str, ',', id_list); - search(existing_items, table.c_str(), "true order by 1 ASC"); + search(existing_items, table.c_str(), "1 order by 1 ASC"); for (iterator = id_list.begin(); iterator != id_list.end(); ++iterator) {