472,780 Members | 2,059 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,780 software developers and data experts.

escaping - sign

I'm trying to accomplish the following:
GRANT all ON friends TO www-data;

however the - sign in www-data seems to be a problem, how should I
escape it correctly?

regards,
hugo
Aug 13 '05 #1
2 1909
In article <42***********************@news.skynet.be>,
Hugo Coolens <hu*********@skynet.be> wrote:
I'm trying to accomplish the following:
GRANT all ON friends TO www-data;

however the - sign in www-data seems to be a problem, how should I
escape it correctly?

regards,
hugo

Oofa - you should not use - in your table or field names.

You can try

GRANT ALL ON friends TO "www-data";

and see what that gets ya...

Let us know how it goes...

--
Available for Hire! http://amduus.com/Resumes/
Aug 14 '05 #2
Scott Auge wrote:
In article <42***********************@news.skynet.be>,
Hugo Coolens <hu*********@skynet.be> wrote:

I'm trying to accomplish the following:
GRANT all ON friends TO www-data;

however the - sign in www-data seems to be a problem, how should I
escape it correctly?

regards,
hugo
Oofa - you should not use - in your table or field names.

in fact it is not a table or field name but a user name You can try

GRANT ALL ON friends TO "www-data";

and see what that gets ya...

this also does not work:
friends=> GRANT ALL ON friends to www-data;
ERROR: syntax error at or near "-" at character 28
friends=> GRANT ALL ON friends to "www-data";
ERROR: user "www-data" does not exist

In the past that user was wwwrun but on Debian Sarge it seems they
created a default user www-data ...I'd like to keep that user.

any help welcome
hugo
p.s. I'm trying out the tutorial at:
http://pgsql.designmagick.com/tutorial.php?id=4
Aug 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Dave Moore | last post by:
Hi All, Can anybody point me to a FAQ or similar that describes what all this stuff is about please?. I'm interfacing with a MySQL database if that's relavent. I've read a couple of books which...
2
by: Ding | last post by:
Hello, I've got a problem with the regular expression api. To illustrate the problem i've made a little example: Matcher m=Pattern.compile("test").matcher("this is a test not");...
0
by: Simon Hawkins | last post by:
Just wondering... ... Is there a class or method in the API that will automatically 'escape' all the HTML special characters in a String, or a file? Something like the 'URLEncoder' class where the...
5
by: bobbyballgame | last post by:
I am having a problem calling Stored Procedures: .... dim MyValue, MyOtherValue MyValue = "Bobby's value" MyOtherValue = Bobby's other value" rs.Open "exec MyStoredProc """ & MyValue &...
11
by: Geoff Caplan | last post by:
Hi folks, The thread on injection attacks was very instructive, but seemed to run out of steam at an interesting point. Now you guys have kindly educated me about the real nature of the issues,...
6
by: Alan Silver | last post by:
Hello, I am populating a drop down list at run time, and the text going in includes a pound sign. I have been trying to add the item like this... drpFerret.Items.Add(new ListItem("Ferrets...
3
by: Taras_96 | last post by:
Hi everyone, I'm having a bit of trouble understanding the purpose of escaping nulls, and the use of addcslashes. Firstly, the manual states that: "Strictly speaking, MySQL requires only...
1
by: David Henderson | last post by:
I know 'disable-output-escaping' has been discussed in the past, but I can't put my finger on any of the threads to see if my current problem is addressed. Sorry for re-asking the question if it...
0
by: ketakijoshi | last post by:
Hi, I am pretty new to C# .Net. Working on a piece of code where I have converted Chinese characters into hex equivalents. But when I insert it in the XML, the "&" sign is converted into the "&amp;"...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.