Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
90c3e690
Kaydet (Commit)
90c3e690
authored
Şub 03, 2015
tarafından
Norbert Thiebaud
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
tdf#89048 Macab initialize record list even for never-match condition.
Change-Id: I323f6532d00f30cde50616e9399cad6bbe00cb8c
üst
f5d305a6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
MacabResultSet.cxx
connectivity/source/drivers/macab/MacabResultSet.cxx
+5
-0
MacabStatement.cxx
connectivity/source/drivers/macab/MacabStatement.cxx
+1
-1
No files found.
connectivity/source/drivers/macab/MacabResultSet.cxx
Dosyayı görüntüle @
90c3e690
...
@@ -86,6 +86,11 @@ void MacabResultSet::someMacabRecords(const MacabCondition *pCondition)
...
@@ -86,6 +86,11 @@ void MacabResultSet::someMacabRecords(const MacabCondition *pCondition)
// maximum alloted size, which means that we'll never have to resize)
// maximum alloted size, which means that we'll never have to resize)
m_aMacabRecords
=
new
MacabRecords
(
allRecords
);
m_aMacabRecords
=
new
MacabRecords
(
allRecords
);
if
(
pCondition
->
isAlwaysFalse
())
{
return
;
}
MacabRecords
::
iterator
iterator
;
MacabRecords
::
iterator
iterator
;
for
(
iterator
=
allRecords
->
begin
();
for
(
iterator
=
allRecords
->
begin
();
...
...
connectivity/source/drivers/macab/MacabStatement.cxx
Dosyayı görüntüle @
90c3e690
...
@@ -329,7 +329,7 @@ void MacabCommonStatement::selectRecords(MacabResultSet *pResult) const throw(SQ
...
@@ -329,7 +329,7 @@ void MacabCommonStatement::selectRecords(MacabResultSet *pResult) const throw(SQ
MacabCondition
*
pCondition
=
analyseWhereClause
(
pParseNode
);
MacabCondition
*
pCondition
=
analyseWhereClause
(
pParseNode
);
if
(
pCondition
->
isAlwaysTrue
())
if
(
pCondition
->
isAlwaysTrue
())
pResult
->
allMacabRecords
();
pResult
->
allMacabRecords
();
else
if
(
!
pCondition
->
isAlwaysFalse
())
else
pResult
->
someMacabRecords
(
pCondition
);
pResult
->
someMacabRecords
(
pCondition
);
delete
pCondition
;
delete
pCondition
;
return
;
return
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment