Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pike
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pikelang
pike
Commits
386c3a3a
Commit
386c3a3a
authored
28 years ago
by
Henrik (Grubba) Grubbström
Browse files
Options
Downloads
Patches
Plain Diff
Now uses mysql_real_query() if available.
Rev: src/modules/mysql/mysql.c:1.12
parent
71f877cd
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/modules/mysql/mysql.c
+8
-2
8 additions, 2 deletions
src/modules/mysql/mysql.c
with
8 additions
and
2 deletions
src/modules/mysql/mysql.c
+
8
−
2
View file @
386c3a3a
/*
* $Id: mysql.c,v 1.1
1
1997/01/
16 05:04:18 h
ubb
e
Exp $
* $Id: mysql.c,v 1.1
2
1997/01/
30 23:45:22 gr
ubb
a
Exp $
*
* SQL database functionality for Pike
*
...
...
@@ -59,7 +59,7 @@ typedef struct dynamic_buffer_s dynamic_buffer;
* Globals
*/
RCSID
(
"$Id: mysql.c,v 1.1
1
1997/01/
16 05:04:18 h
ubb
e
Exp $"
);
RCSID
(
"$Id: mysql.c,v 1.1
2
1997/01/
30 23:45:22 gr
ubb
a
Exp $"
);
struct
program
*
mysql_program
=
NULL
;
...
...
@@ -237,6 +237,7 @@ static void f_big_query(INT32 args)
MYSQL
*
socket
=
PIKE_MYSQL
->
socket
;
MYSQL_RES
*
result
;
char
*
query
;
int
qlen
;
int
tmp
;
if
(
!
args
)
{
...
...
@@ -247,6 +248,7 @@ static void f_big_query(INT32 args)
}
query
=
sp
[
-
args
].
u
.
string
->
str
;
qlen
=
sp
[
-
args
].
u
.
string
->
len
;
THREADS_ALLOW
();
...
...
@@ -254,7 +256,11 @@ static void f_big_query(INT32 args)
* which is closed at THREADS_DISALLOW()
*/
#ifdef HAVE_MYSQL_REAL_QUERY
tmp
=
mysql_real_query
(
socket
,
query
,
qlen
);
#else
tmp
=
mysql_query
(
socket
,
query
);
#endif
/* HAVE_MYSQL_REAL_QUERY */
THREADS_DISALLOW
();
...
...
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