Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
3ab5709a
Commit
3ab5709a
authored
Apr 3, 2003
by
Dries Buytaert
Browse files
Options
Downloads
Patches
Plain Diff
- Changed pconnect() to connect().
parent
62f5ae01
No related branches found
No related tags found
2 merge requests
!7452
Issue #1797438. HTML5 validation is preventing form submit and not fully...
,
!789
Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
includes/database.mysql.inc
+8
-2
8 additions, 2 deletions
includes/database.mysql.inc
with
8 additions
and
2 deletions
includes/database.mysql.inc
+
8
−
2
View file @
3ab5709a
...
...
@@ -9,10 +9,16 @@ function db_connect($url) {
$url
[
"host"
]
=
$url
[
"host"
]
.
":"
.
$url
[
"port"
];
}
mysql_
p
connect
(
$url
[
"host"
],
$url
[
"user"
],
$url
[
"pass"
])
or
die
(
mysql_error
());
mysql_connect
(
$url
[
"host"
],
$url
[
"user"
],
$url
[
"pass"
])
or
die
(
mysql_error
());
mysql_select_db
(
substr
(
$url
[
"path"
],
1
))
or
die
(
"unable to select database"
);
// NOTE: we are using a persistent connection!
/*
** Note that you can change the 'mysql_connect' statement to 'mysql_pconnect'
** if you want to use persistent connections. This is not recommended on
** shared hosts, might require additional database/webserver tuning but
** increases performance when the overhead to connect to your database is
** high (eg. your database and webserver live on different machines).
*/
}
function
db_query
(
$query
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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