Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
RQL
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
Service Desk
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
cubicweb
RQL
Commits
ede0c8b7d83b
Commit
ede0c8b7d83b
authored
14 years ago
by
Sylvain Thénault
Browse files
Options
Downloads
Plain Diff
backport stable
parents
b40a38e34bed
df94554d6ebd
No related branches found
No related tags found
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
.hgtags
+2
-0
2 additions, 0 deletions
.hgtags
ChangeLog
+9
-4
9 additions, 4 deletions
ChangeLog
__pkginfo__.py
+5
-5
5 additions, 5 deletions
__pkginfo__.py
debian/changelog
+6
-0
6 additions, 0 deletions
debian/changelog
test/unittest_parser.py
+9
-0
9 additions, 0 deletions
test/unittest_parser.py
with
31 additions
and
9 deletions
.hgtags
+
2
−
0
View file @
ede0c8b7
...
...
@@ -56,3 +56,5 @@
aca033de456a6b526045f9be0dbdb770e67912ab rql-debian-version-0.26.3-1
bcf24f8a29c07146220816565a132ba148cdf82a rql-version-0.26.4
88b739e85c615fc41a964f39e853fe77aaf3f207 rql-debian-version-0.26.4-1
7a1df18b3a3ed41aa49d4baf10246a8e2e65a7d6 rql-version-0.26.6
23bd1f36ec77f30cd525327d408ef6836f88eb24 rql-debian-version-0.26.6-1
This diff is collapsed.
Click to expand it.
ChangeLog
+
9
−
4
View file @
ede0c8b7
ChangeLog for RQL
=================
--
2010-09-10 -- 0.26.6
* enhance bad rql query detection with ordered distinct (can't use distinct
if an attribute is selected and we sort on another attribute)
...
...
@@ -5,11 +5,8 @@
* enhance bad rql query detection with ordered distinct (can't use distinct
if an attribute is selected and we sort on another attribute)
* add constraint package to dependencies so we've fallback opportunity if
gecode is not installed
* fix subquery_selection_index responsability mess-up: it wasn't doing what
it should have done (see cw.rset related_entity implementation)
* consider subquery aliases in Select.clean_solutions
...
...
@@ -11,8 +8,16 @@
* fix subquery_selection_index responsability mess-up: it wasn't doing what
it should have done (see cw.rset related_entity implementation)
* consider subquery aliases in Select.clean_solutions
* add constraint package to setuptools dependencies so we've fallback
opportunity if gecode is not installed
* fix setuptools dependency on yapps by forcing install of our custom
package, so it don't try to install pypi's one which doesn't work well
with both pip and easy_install
2010-08-02 -- 0.26.5
* fix solutions computation crash with some query using sub-queries (closes #37423)
...
...
This diff is collapsed.
Click to expand it.
__pkginfo__.py
+
5
−
5
View file @
ede0c8b7
...
...
@@ -20,7 +20,7 @@
__docformat__
=
"
restructuredtext en
"
modname
=
"
rql
"
numversion
=
(
0
,
26
,
5
)
numversion
=
(
0
,
26
,
6
)
version
=
'
.
'
.
join
(
str
(
num
)
for
num
in
numversion
)
license
=
'
LGPL
'
...
...
@@ -69,8 +69,8 @@
else
:
ext_modules
=
[
Extension
(
'
rql_solve
'
,
[
'
gecode_solver.cpp
'
],
libraries
=
[
'
GecodeInt-3-3-1-r-x86
'
,
'
GecodeKernel-3-3-1-r-x86
'
,
libraries
=
[
'
GecodeInt-3-3-1-r-x86
'
,
'
GecodeKernel-3-3-1-r-x86
'
,
'
GecodeSearch-3-3-1-r-x86
'
,
'
GecodeSupport-3-3-1-r-x86
'
,
],
...
...
@@ -82,9 +82,9 @@
install_requires
=
[
'
logilab-common >= 0.47.0
'
,
'
logilab-database
'
,
'
yapps
2 >
= 2.1.1
'
,
'
yapps
=
= 2.1.1
'
,
# XXX to ensure we don't use the broken pypi version
'
constraint
'
,
# fallback if the gecode compiled module is missing
]
# links to download yapps2 package that is not (yet) registered in pypi
dependency_links
=
[
...
...
@@ -86,7 +86,7 @@
'
constraint
'
,
# fallback if the gecode compiled module is missing
]
# links to download yapps2 package that is not (yet) registered in pypi
dependency_links
=
[
"
http://ftp.logilab.org/pub/yapps/yapps2-2.1.1.zip#egg=yapps
2
-2.1.1
"
,
"
http://ftp.logilab.org/pub/yapps/yapps2-2.1.1.zip#egg=yapps-2.1.1
"
,
]
This diff is collapsed.
Click to expand it.
debian/changelog
+
6
−
0
View file @
ede0c8b7
rql (0.26.6-1) unstable; urgency=low
* new upstream release
-- Sylvain Thénault <sylvain.thenault@logilab.fr> Fri, 10 Sep 2010 11:09:22 +0200
rql (0.26.5-1) unstable; urgency=low
* new upstream release
...
...
This diff is collapsed.
Click to expand it.
test/unittest_parser.py
+
9
−
0
View file @
ede0c8b7
...
...
@@ -63,6 +63,7 @@
'
Any X WHERE X eid 53;
'
,
'
Any X WHERE X eid -53;
'
,
"
Document X WHERE X occurence_of F, F class C, C name
'
Bande dessine
'
, X owned_by U, U login
'
syt
'
, X available true;
"
,
u
"
Document X WHERE X occurence_of F, F class C, C name
'
Bande dessine
'
, X owned_by U, U login
'
syt
'
, X available true;
"
,
"
Personne P WHERE P travaille_pour S, S nom
'
Eurocopter
'
, P interesse_par T, T nom
'
formation
'
;
"
,
"
Note N WHERE N ecrit_le D, D day > (today -10), N ecrit_par P, P nom
'
jphc
'
or P nom
'
ocy
'
;
"
,
"
Personne P WHERE (P interesse_par T, T nom
'
formation
'
) or (P ville
'
Paris
'
);
"
,
...
...
@@ -168,6 +169,14 @@
print
string
,
ex
raise
def
test_unicode_constant
(
self
):
tree
=
self
.
parse
(
u
"
Any X WHERE X name
'
ngstrm
'
;
"
)
base
=
tree
.
children
[
0
].
where
comparison
=
base
.
children
[
1
]
self
.
failUnless
(
isinstance
(
comparison
,
nodes
.
Comparison
))
rhs
=
comparison
.
children
[
0
]
self
.
assertEquals
(
type
(
rhs
.
value
),
unicode
)
def
test_precedence_1
(
self
):
tree
=
self
.
parse
(
"
Any X WHERE X firstname
'
lulu
'
AND X name
'
toto
'
OR X name
'
tutu
'
;
"
)
base
=
tree
.
children
[
0
].
where
...
...
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