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
0124b711
Kaydet (Commit)
0124b711
authored
Nis 02, 2002
tarafından
Ocke Janssen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
check foreign key names
üst
a6881c4b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
49 additions
and
10 deletions
+49
-10
BResultSetMetaData.cxx
connectivity/source/drivers/adabas/BResultSetMetaData.cxx
+32
-2
BTable.cxx
connectivity/source/drivers/adabas/BTable.cxx
+14
-6
BResultSetMetaData.hxx
connectivity/source/inc/adabas/BResultSetMetaData.hxx
+3
-2
No files found.
connectivity/source/drivers/adabas/BResultSetMetaData.cxx
Dosyayı görüntüle @
0124b711
...
...
@@ -2,9 +2,9 @@
*
* $RCSfile: BResultSetMetaData.cxx,v $
*
* $Revision: 1.
3
$
* $Revision: 1.
4
$
*
* last change: $Author: oj $ $Date: 200
1-08-02 10:49:44
$
* last change: $Author: oj $ $Date: 200
2-04-02 07:07:28
$
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
...
...
@@ -68,6 +68,12 @@
#ifndef _COM_SUN_STAR_SDBC_DATATYPE_HPP_
#include <com/sun/star/sdbc/DataType.hpp>
#endif
#ifndef _COM_SUN_STAR_SDBC_COLUMNVALUE_HPP_
#include <com/sun/star/sdbc/ColumnValue.hpp>
#endif
#ifndef _COM_SUN_STAR_SDBC_XROW_HPP_
#include <com/sun/star/sdbc/XRow.hpp>
#endif
using
namespace
com
::
sun
::
star
::
sdbc
;
using
namespace
com
::
sun
::
star
::
uno
;
...
...
@@ -98,5 +104,29 @@ sal_Int32 SAL_CALL OAdabasResultSetMetaData::getColumnType( sal_Int32 column ) t
return
nType
;
}
// -----------------------------------------------------------------------------
sal_Int32
SAL_CALL
OAdabasResultSetMetaData
::
isNullable
(
sal_Int32
column
)
throw
(
SQLException
,
RuntimeException
)
{
// adabas return values, so we have to ask the table itself
sal_Int32
nNullable
=
ColumnValue
::
NULLABLE
;
::
rtl
::
OUString
sSchema
=
getSchemaName
(
column
);
::
rtl
::
OUString
sTable
=
getTableName
(
column
);
::
rtl
::
OUString
sColumn
=
getColumnName
(
column
);
Reference
<
XResultSet
>
xRes
=
m_pConnection
->
getMetaData
()
->
getColumns
(
Any
(),
sSchema
,
sTable
,
sColumn
);
Reference
<
XRow
>
xRow
(
xRes
,
UNO_QUERY
);
if
(
xRes
.
is
()
&&
xRow
.
is
()
)
{
sal_Int32
nType
=
getColumnType
(
column
);
while
(
xRes
->
next
()
)
{
if
(
nType
==
xRow
->
getInt
(
5
)
)
nNullable
=
xRow
->
getInt
(
11
);
}
}
else
nNullable
=
OAdabasResultSetMetaData_BASE
::
isNullable
(
column
);
return
nNullable
;
}
// -----------------------------------------------------------------------------
connectivity/source/drivers/adabas/BTable.cxx
Dosyayı görüntüle @
0124b711
...
...
@@ -2,9 +2,9 @@
*
* $RCSfile: BTable.cxx,v $
*
* $Revision: 1.
29
$
* $Revision: 1.
30
$
*
* last change: $Author: oj $ $Date: 2002-0
3-21 13:40:24
$
* last change: $Author: oj $ $Date: 2002-0
4-02 07:07:28
$
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
...
...
@@ -191,12 +191,20 @@ void OAdabasTable::refreshPrimaryKeys(std::vector< ::rtl::OUString>& _rKeys)
void
OAdabasTable
::
refreshForgeinKeys
(
std
::
vector
<
::
rtl
::
OUString
>&
_rKeys
)
{
Reference
<
XResultSet
>
xResult
=
m_pConnection
->
getMetaData
()
->
getImportedKeys
(
Any
(),
m_SchemaName
,
m_Name
);
Reference
<
XRow
>
xRow
(
xResult
,
UNO_QUERY
);
if
(
xResult
.
is
()
)
if
(
xRow
.
is
()
)
{
Reference
<
XRow
>
xRow
(
xResult
,
UNO_QUERY
);
while
(
xResult
->
next
())
_rKeys
.
push_back
(
xRow
->
getString
(
12
));
while
(
xResult
->
next
()
)
{
sal_Int32
nKeySeq
=
xRow
->
getInt
(
9
);
if
(
nKeySeq
==
1
)
{
// only append when the sequnce number is 1 to forbid serveral inserting the same key name
::
rtl
::
OUString
sFkName
=
xRow
->
getString
(
12
);
if
(
!
xRow
->
wasNull
()
&&
sFkName
.
getLength
()
)
_rKeys
.
push_back
(
sFkName
);
}
}
::
comphelper
::
disposeComponent
(
xResult
);
}
}
...
...
connectivity/source/inc/adabas/BResultSetMetaData.hxx
Dosyayı görüntüle @
0124b711
...
...
@@ -2,9 +2,9 @@
*
* $RCSfile: BResultSetMetaData.hxx,v $
*
* $Revision: 1.
1
$
* $Revision: 1.
2
$
*
* last change: $Author: oj $ $Date: 200
1-08-02 10:48:3
8 $
* last change: $Author: oj $ $Date: 200
2-04-02 07:07:2
8 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
...
...
@@ -83,6 +83,7 @@ namespace connectivity
virtual
~
OAdabasResultSetMetaData
();
virtual
sal_Int32
SAL_CALL
getColumnType
(
sal_Int32
column
)
throw
(
::
com
::
sun
::
star
::
sdbc
::
SQLException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
sal_Int32
SAL_CALL
isNullable
(
sal_Int32
column
)
throw
(
::
com
::
sun
::
star
::
sdbc
::
SQLException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
};
}
}
...
...
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