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
03b0fd3e
Kaydet (Commit)
03b0fd3e
authored
Kas 06, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)
Change-Id: Ia3b2020e3f58e23e87a95d1fee0c76c8aba705ea
üst
7cf6736d
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
14 additions
and
14 deletions
+14
-14
TColumnsHelper.cxx
connectivity/source/commontools/TColumnsHelper.cxx
+1
-1
dbtools.cxx
connectivity/source/commontools/dbtools.cxx
+2
-2
dbtools2.cxx
connectivity/source/commontools/dbtools2.cxx
+1
-1
predicateinput.cxx
connectivity/source/commontools/predicateinput.cxx
+1
-1
NStatement.cxx
connectivity/source/drivers/evoab2/NStatement.cxx
+1
-1
MResultSet.cxx
connectivity/source/drivers/mork/MResultSet.cxx
+2
-2
sqliterator.cxx
connectivity/source/parse/sqliterator.cxx
+2
-2
sqlnode.cxx
connectivity/source/parse/sqlnode.cxx
+4
-4
No files found.
connectivity/source/commontools/TColumnsHelper.cxx
Dosyayı görüntüle @
03b0fd3e
...
...
@@ -93,7 +93,7 @@ sdbcx::ObjectType OColumnsHelper::createObject(const OUString& _rName)
if
(
aFind
==
m_pImpl
->
m_aColumnInfo
.
end
()
)
// we have to fill it
{
OUString
sComposedName
=
::
dbtools
::
composeTableNameForSelect
(
xConnection
,
m_pTable
);
collectColumnInformation
(
xConnection
,
sComposedName
,
OUString
(
"*"
)
,
m_pImpl
->
m_aColumnInfo
);
collectColumnInformation
(
xConnection
,
sComposedName
,
"*"
,
m_pImpl
->
m_aColumnInfo
);
aFind
=
m_pImpl
->
m_aColumnInfo
.
find
(
_rName
);
}
if
(
aFind
!=
m_pImpl
->
m_aColumnInfo
.
end
()
)
...
...
connectivity/source/commontools/dbtools.cxx
Dosyayı görüntüle @
03b0fd3e
...
...
@@ -1298,8 +1298,8 @@ OUString composeTableName( const Reference< XDatabaseMetaData >& _rxMetaData,
OUString
composeTableNameForSelect
(
const
Reference
<
XConnection
>&
_rxConnection
,
const
OUString
&
_rCatalog
,
const
OUString
&
_rSchema
,
const
OUString
&
_rName
)
{
bool
bUseCatalogInSelect
=
isDataSourcePropertyEnabled
(
_rxConnection
,
OUString
(
"UseCatalogInSelect"
)
,
true
);
bool
bUseSchemaInSelect
=
isDataSourcePropertyEnabled
(
_rxConnection
,
OUString
(
"UseSchemaInSelect"
)
,
true
);
bool
bUseCatalogInSelect
=
isDataSourcePropertyEnabled
(
_rxConnection
,
"UseCatalogInSelect"
,
true
);
bool
bUseSchemaInSelect
=
isDataSourcePropertyEnabled
(
_rxConnection
,
"UseSchemaInSelect"
,
true
);
return
impl_doComposeTableName
(
_rxConnection
->
getMetaData
(),
...
...
connectivity/source/commontools/dbtools2.cxx
Dosyayı görüntüle @
03b0fd3e
...
...
@@ -552,7 +552,7 @@ Reference<XPropertySet> createSDBCXColumn(const Reference<XPropertySet>& _xTable
xProp
=
lcl_createSDBCXColumn
(
xPrimaryKeyColumns
,
_xConnection
,
aCatalog
,
aSchema
,
aTable
,
_rName
,
_rName
,
_bCase
,
_bQueryForInfo
,
_bIsAutoIncrement
,
_bIsCurrency
,
_nDataType
);
if
(
!
xProp
.
is
()
)
{
xProp
=
lcl_createSDBCXColumn
(
xPrimaryKeyColumns
,
_xConnection
,
aCatalog
,
aSchema
,
aTable
,
OUString
(
"%"
)
,
_rName
,
_bCase
,
_bQueryForInfo
,
_bIsAutoIncrement
,
_bIsCurrency
,
_nDataType
);
xProp
=
lcl_createSDBCXColumn
(
xPrimaryKeyColumns
,
_xConnection
,
aCatalog
,
aSchema
,
aTable
,
"%"
,
_rName
,
_bCase
,
_bQueryForInfo
,
_bIsAutoIncrement
,
_bIsCurrency
,
_nDataType
);
if
(
!
xProp
.
is
()
)
xProp
=
new
connectivity
::
sdbcx
::
OColumn
(
_rName
,
OUString
(),
OUString
(),
OUString
(),
...
...
connectivity/source/commontools/predicateinput.cxx
Dosyayı görüntüle @
03b0fd3e
...
...
@@ -203,7 +203,7 @@ namespace dbtools
::
comphelper
::
getNumberFormatProperty
(
m_xFormatter
,
nFormatKey
,
OUString
(
"Locale"
)
"Locale"
)
>>=
aFormatLocale
;
// valid locale
...
...
connectivity/source/drivers/evoab2/NStatement.cxx
Dosyayı görüntüle @
03b0fd3e
...
...
@@ -372,7 +372,7 @@ EBookQuery *OCommonStatement::whereAnalysis( const OSQLParseNode* parseTree )
{
// String containing only a '%' and nothing else matches everything
pResult
=
createTest
(
aColumnName
,
E_BOOK_QUERY_CONTAINS
,
OUString
(
""
)
);
""
);
}
else
if
(
aMatchString
.
indexOf
(
WILDCARD
)
==
-
1
)
{
// Simple string , eg. "to match" "contains in evo"
...
...
connectivity/source/drivers/mork/MResultSet.cxx
Dosyayı görüntüle @
03b0fd3e
...
...
@@ -981,12 +981,12 @@ void OResultSet::analyseWhereClause( const OSQLParseNode* parseT
sal_Int32
pos
;
while
(
(
pos
=
matchString
.
indexOf
(
WILDCARD
))
!=
-
1
)
{
matchString
=
matchString
.
replaceAt
(
pos
,
1
,
OUString
(
".*"
)
);
matchString
=
matchString
.
replaceAt
(
pos
,
1
,
".*"
);
}
while
(
(
pos
=
matchString
.
indexOf
(
MATCHCHAR
))
!=
-
1
)
{
matchString
=
matchString
.
replaceAt
(
pos
,
1
,
OUString
(
"."
)
);
matchString
=
matchString
.
replaceAt
(
pos
,
1
,
"."
);
}
op
=
MQueryOp
::
RegExp
;
...
...
connectivity/source/parse/sqliterator.cxx
Dosyayı görüntüle @
03b0fd3e
...
...
@@ -936,7 +936,7 @@ bool OSQLParseTreeIterator::traverseSelectColumnNames(const OSQLParseNode* pSele
if
(
pSelectNode
->
getChild
(
2
)
->
isRule
()
&&
SQL_ISPUNCTUATION
(
pSelectNode
->
getChild
(
2
)
->
getChild
(
0
),
"*"
))
{
// SELECT * ...
setSelectColumnName
(
m_aSelectColumns
,
OUString
(
"*"
)
,
aEmptyString
,
aEmptyString
);
setSelectColumnName
(
m_aSelectColumns
,
"*"
,
aEmptyString
,
aEmptyString
);
}
else
if
(
SQL_ISRULE
(
pSelectNode
->
getChild
(
2
),
scalar_exp_commalist
))
{
...
...
@@ -956,7 +956,7 @@ bool OSQLParseTreeIterator::traverseSelectColumnNames(const OSQLParseNode* pSele
// All the table's columns
OUString
aTableRange
;
pColumnRef
->
getChild
(
0
)
->
parseNodeToStr
(
aTableRange
,
m_pImpl
->
m_xConnection
,
NULL
,
false
,
false
);
setSelectColumnName
(
m_aSelectColumns
,
OUString
(
"*"
)
,
aEmptyString
,
aTableRange
);
setSelectColumnName
(
m_aSelectColumns
,
"*"
,
aEmptyString
,
aTableRange
);
continue
;
}
else
if
(
SQL_ISRULE
(
pColumnRef
,
derived_column
))
...
...
connectivity/source/parse/sqlnode.cxx
Dosyayı görüntüle @
03b0fd3e
...
...
@@ -741,7 +741,7 @@ void OSQLParseNode::impl_parseLikeNodeToString_throw( OUStringBuffer& rString, c
{
OUString
aStr
=
ConvertLikeToken
(
pParaNode
,
pEscNode
,
rParam
.
bInternational
);
rString
.
append
(
" "
);
rString
.
append
(
SetQuotation
(
aStr
,
OUString
(
"
\'
"
),
OUString
(
"
\'\'
"
)
));
rString
.
append
(
SetQuotation
(
aStr
,
"
\'
"
,
"
\'\'
"
));
}
else
pParaNode
->
impl_parseNodeToString_throw
(
rString
,
aNewParam
,
false
);
...
...
@@ -1004,7 +1004,7 @@ sal_Int16 OSQLParser::buildLikeRule(OSQLParseNode* pAppend, OSQLParseNode*& pLit
sal_Int16
nScale
=
0
;
try
{
Any
aValue
=
getNumberFormatProperty
(
m_xFormatter
,
m_nFormatKey
,
OUString
(
"Decimals"
)
);
Any
aValue
=
getNumberFormatProperty
(
m_xFormatter
,
m_nFormatKey
,
"Decimals"
);
aValue
>>=
nScale
;
}
catch
(
Exception
&
)
...
...
@@ -1092,7 +1092,7 @@ OSQLParseNode* OSQLParser::buildNode_STR_NUM(OSQLParseNode*& _pLiteral)
sal_Int16
nScale
=
0
;
try
{
Any
aValue
=
getNumberFormatProperty
(
m_xFormatter
,
m_nFormatKey
,
OUString
(
"Decimals"
)
);
Any
aValue
=
getNumberFormatProperty
(
m_xFormatter
,
m_nFormatKey
,
"Decimals"
);
aValue
>>=
nScale
;
}
catch
(
Exception
&
)
...
...
@@ -2437,7 +2437,7 @@ void OSQLParseNode::parseLeaf(OUStringBuffer& rString, const SQLParseNodeParamet
case
SQL_NODE_STRING
:
if
(
!
rString
.
isEmpty
())
rString
.
append
(
" "
);
rString
.
append
(
SetQuotation
(
m_aNodeValue
,
OUString
(
"
\'
"
),
OUString
(
"
\'\'
"
)
));
rString
.
append
(
SetQuotation
(
m_aNodeValue
,
"
\'
"
,
"
\'\'
"
));
break
;
case
SQL_NODE_NAME
:
if
(
!
rString
.
isEmpty
())
...
...
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