summaryrefslogtreecommitdiff
path: root/pynslcd/cache.py
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2013-08-12 13:26:03 +0200
committerArthur de Jong <arthur@arthurdejong.org>2013-08-17 12:31:36 +0200
commit1b89df59af349feb27205b90727263f17f29a9d8 (patch)
tree4b84a5a633f63200fe089efd0ce220eb3364e661 /pynslcd/cache.py
parent76712760885774f883f7bf79ce97931a6e251428 (diff)
Give cache tables friendlier names
This also defined the tables for netgroup storage.
Diffstat (limited to 'pynslcd/cache.py')
-rw-r--r--pynslcd/cache.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/pynslcd/cache.py b/pynslcd/cache.py
index 56a83e5..f6d894e 100644
--- a/pynslcd/cache.py
+++ b/pynslcd/cache.py
@@ -59,14 +59,14 @@ class CnAliasedQuery(Query):
sql = '''
SELECT `%(table)s_cache`.*,
- `%(table)s_1_cache`.`cn` AS `alias`
+ `%(table)s_alias_cache`.`cn` AS `alias`
FROM `%(table)s_cache`
- LEFT JOIN `%(table)s_1_cache`
- ON `%(table)s_1_cache`.`%(table)s` = `%(table)s_cache`.`cn`
+ LEFT JOIN `%(table)s_alias_cache`
+ ON `%(table)s_alias_cache`.`%(table)s` = `%(table)s_cache`.`cn`
'''
cn_join = '''
- LEFT JOIN `%(table)s_1_cache` `cn_alias`
+ LEFT JOIN `%(table)s_alias_cache` `cn_alias`
ON `cn_alias`.`%(table)s` = `%(table)s_cache`.`cn`
'''