|
|
|
current_user() и вьюшка
|
|||
|---|---|---|---|
|
#18+
Привет. Подскажите в чем дело. Вот такая конструкция: CREATE VIEW tab AS SELECT current_user(); Получается вьюшка в которой как мне представлялось должен лежать текущий юзер. А там хранится тот юзер который создал вьюшку. Как нибудь можно с этим справиться? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 14.10.2013, 22:34:21 |
|
||
|
current_user() и вьюшка
|
|||
|---|---|---|---|
|
#18+
Документацию читать не только вредно, но и полезно. http://dev.mysql.com/doc/refman/5.5/en/information-functions.html#function_current-user Within a stored program or view, CURRENT_USER() returns the account for the user who defined the object (as given by its DEFINER value) unless defined with the SQL SECURITY INVOKER characteristic. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 14.10.2013, 22:52:27 |
|
||
|
|

start [/forum/topic.php?fid=47&fpage=204&tid=1835884]: |
0ms |
get settings: |
11ms |
get forum list: |
19ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
44ms |
get topic data: |
13ms |
get forum data: |
3ms |
get page messages: |
43ms |
get tp. blocked users: |
2ms |
| others: | 214ms |
| total: | 357ms |

| 0 / 0 |
