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
a2db9096
Kaydet (Commit)
a2db9096
authored
Şub 28, 2013
tarafından
Lionel Elie Mamane
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#61203 initialise m_aComposedTableName *before* trying to use it
Change-Id: Ie7a19bdfe9e7bc729a62191362ce0779d73385a0
üst
06768783
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
CacheSet.cxx
dbaccess/source/core/api/CacheSet.cxx
+2
-1
KeySet.cxx
dbaccess/source/core/api/KeySet.cxx
+2
-1
No files found.
dbaccess/source/core/api/CacheSet.cxx
Dosyayı görüntüle @
a2db9096
...
...
@@ -156,10 +156,11 @@ void OCacheSet::fillTableName(const Reference<XPropertySet>& _xTable) throw(SQL
void
SAL_CALL
OCacheSet
::
insertRow
(
const
ORowSetRow
&
_rInsertRow
,
const
connectivity
::
OSQLTable
&
_xTable
)
throw
(
SQLException
,
RuntimeException
)
{
RTL_LOGFILE_CONTEXT_AUTHOR
(
aLogger
,
"dbaccess"
,
"Ocke.Janssen@sun.com"
,
"OCacheSet::insertRow"
);
OUStringBuffer
aSql
(
"INSERT INTO "
+
m_aComposedTableName
+
" ( "
);
Reference
<
XPropertySet
>
xSet
(
_xTable
,
UNO_QUERY
);
fillTableName
(
xSet
);
OUStringBuffer
aSql
(
"INSERT INTO "
+
m_aComposedTableName
+
" ( "
);
// set values and column names
::
rtl
::
OUStringBuffer
aValues
(
" VALUES ( "
);
static
::
rtl
::
OUString
aPara
(
"?,"
);
...
...
dbaccess/source/core/api/KeySet.cxx
Dosyayı görüntüle @
a2db9096
...
...
@@ -728,10 +728,11 @@ void OKeySet::executeUpdate(const ORowSetRow& _rInsertRow ,const ORowSetRow& _rO
void
SAL_CALL
OKeySet
::
insertRow
(
const
ORowSetRow
&
_rInsertRow
,
const
connectivity
::
OSQLTable
&
_xTable
)
throw
(
SQLException
,
RuntimeException
)
{
RTL_LOGFILE_CONTEXT_AUTHOR
(
aLogger
,
"dbaccess"
,
"Ocke.Janssen@sun.com"
,
"OKeySet::insertRow"
);
OUStringBuffer
aSql
(
"INSERT INTO "
+
m_aComposedTableName
+
" ( "
);
Reference
<
XPropertySet
>
xSet
(
_xTable
,
UNO_QUERY
);
fillTableName
(
xSet
);
OUStringBuffer
aSql
(
"INSERT INTO "
+
m_aComposedTableName
+
" ( "
);
// set values and column names
OUStringBuffer
aValues
(
OUString
(
" VALUES ( "
));
static
OUString
aPara
(
"?,"
);
...
...
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