Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
5c779ad5
Commit
5c779ad5
authored
Dec 13, 2007
by
mkanat%bugzilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 408037: [Oracle] Running checksetup.pl twice doesn't work
Patch By Xiaoou Wu <xiaoou.wu@oracle.com> r=mkanat, a=mkanat
parent
25de3add
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
Oracle.pm
Bugzilla/DB/Oracle.pm
+7
-1
Setting.pm
Bugzilla/User/Setting.pm
+2
-3
No files found.
Bugzilla/DB/Oracle.pm
View file @
5c779ad5
...
...
@@ -421,8 +421,14 @@ sub bz_setup_database {
$self
->
do
(
"CREATE OR REPLACE FUNCTION NOW "
.
" RETURN DATE IS BEGIN RETURN SYSDATE; END;"
);
# Create a WORLD_LEXER named BZ_LEX for multilingual fulltext search
$self
->
do
(
"BEGIN CTX_DDL.CREATE_PREFERENCE
my
$lexer
=
$self
->
selectcol_arrayref
(
"SELECT pre_name FROM CTXSYS.CTX_PREFERENCES WHERE pre_name = ? AND
pre_owner = ?"
,
undef
,
'BZ_LEX'
,
uc
(
Bugzilla
->
localconfig
->
{
db_user
}));
if
(
!
@$lexer
)
{
$self
->
do
(
"BEGIN CTX_DDL.CREATE_PREFERENCE
('BZ_LEX', 'WORLD_LEXER'); END;"
);
}
$self
->
SUPER::
bz_setup_database
(
@_
);
}
...
...
Bugzilla/User/Setting.pm
View file @
5c779ad5
...
...
@@ -233,9 +233,8 @@ sub set_default {
sub
_setting_exists
{
my
(
$setting_name
)
=
@_
;
my
$dbh
=
Bugzilla
->
dbh
;
my
$sth
=
$dbh
->
prepare
(
"SELECT name FROM setting WHERE name = ?"
);
$sth
->
execute
(
$setting_name
);
return
(
$sth
->
rows
)
?
1
:
0
;
return
$dbh
->
selectrow_arrayref
(
"SELECT 1 FROM setting WHERE name = ?"
,
undef
,
$setting_name
)
||
0
;
}
...
...
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