Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ensembl
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ensembl-gh-mirror
ensembl
Commits
84d49729
Commit
84d49729
authored
20 years ago
by
Glenn Proctor
Browse files
Options
Downloads
Patches
Plain Diff
Updated to deal with split of source table into source and source_url tables.
parent
004c831a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
misc-scripts/xref_mapping/BaseParser.pm
+5
-5
5 additions, 5 deletions
misc-scripts/xref_mapping/BaseParser.pm
with
5 additions
and
5 deletions
misc-scripts/xref_mapping/BaseParser.pm
+
5
−
5
View file @
84d49729
...
...
@@ -37,10 +37,10 @@ run() if (!defined(caller()));
sub
run
{
my
$dbi
=
dbi
();
my
$sth
=
$dbi
->
prepare
("
SELECT * FROM source
WHERE url IS NOT NULL
ORDER BY name
");
my
$sth
=
$dbi
->
prepare
("
SELECT * FROM source
s, source_url su WHERE s.download='Y' AND su.source_id=s.source_id
ORDER BY
s.
name
");
$sth
->
execute
();
my
(
$source_id
,
$name
,
$url
,
$checksum
,
$modified_date
,
$upload_date
,
$release
);
$sth
->
bind_columns
(
\
$source_id
,
\
$name
,
\
$url
,
\
$checksum
,
\
$modified_date
,
\
$upload_date
,
\
$release
);
my
(
$source_id
,
$source_url_id
,
$name
,
$url
,
$checksum
);
$sth
->
bind_columns
(
\
$source_id
,
\
$
source_url_id
,
\
$
name
,
\
$url
,
\
$checksum
);
my
$last_type
=
"";
my
$dir
;
while
(
my
@row
=
$sth
->
fetchrow_array
())
{
...
...
@@ -119,7 +119,7 @@ sub get_source_id_for_filename {
my (
$self
,
$file
) =
@_
;
my
$sql
=
"
SELECT
source_id
FROM
source
WHERE
url
LIKE
'
%/" . $file . "%
'"
;
my
$sql
=
"
SELECT
s.
source_id FROM source
s, source_url su WHERE su.source_id=s.sourc
e_id
AND
su
.
url
LIKE
'
%/" . $file . "%
'"
;
#print
$sql
.
"
\
n
"
;
my
$sth
= dbi()->prepare(
$sql
);
$sth
->execute();
...
...
@@ -231,7 +231,7 @@ sub get_dependent_xref_sources {
if
(
!
defined
%dependent_sources
)
{
my
$dbi
=
dbi
();
my
$sth
=
$dbi
->
prepare
("
SELECT name,source_id FROM source WHERE
url IS NULL
");
my
$sth
=
$dbi
->
prepare
("
SELECT name,source_id FROM source WHERE
download='Y'
");
$sth
->
execute
()
||
die
$dbi
->
errstr
;
while
(
my
@row
=
$sth
->
fetchrow_array
())
{
my
$source_name
=
$row
[
0
];
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment