Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
f61a0d1a
Commit
f61a0d1a
authored
Apr 25, 2007
by
Penny Leach
Browse files
mysql support: mysql doesn't like count(v.*) AS syntax
(getcommunities.json.php)
parent
fd3aa6a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/contacts/communities/getcommunities.json.php
View file @
f61a0d1a
...
...
@@ -52,7 +52,7 @@ else {
$count
=
count_records_sql
(
'SELECT COUNT(*) FROM '
.
$prefix
.
'community c WHERE c.owner = ?'
,
array
(
$userid
));
$datasql
=
'SELECT c.id,c.jointype,c.name,c.owner,count(cmr.community) as requestcount, COUNT(v.
*
) AS hasviews
$datasql
=
'SELECT c.id,c.jointype,c.name,c.owner,count(cmr.community) as requestcount, COUNT(v.
view
) AS hasviews
FROM '
.
$prefix
.
'community c
LEFT JOIN '
.
$prefix
.
'community_member_request cmr ON cmr.community = c.id
LEFT JOIN '
.
$prefix
.
'view_access_community v ON v.community = c.id
...
...
Write
Preview
Supports
Markdown
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