Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Usage of double quotes
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
guru.bhai.rules@gmail.com  
View profile  
 More options Jul 3, 3:13 am
Newsgroups: comp.databases.oracle.server
From: "guru.bhai.ru...@gmail.com" <guru.bhai.ru...@gmail.com>
Date: Fri, 3 Jul 2009 00:13:19 -0700 (PDT)
Local: Fri, Jul 3 2009 3:13 am
Subject: Usage of double quotes
Hi All,
     I have an insert statement that is embedded in a PHP code. It
basically inserts a JS string. We have lots of single quotes inside
the string which we replace by double single quotes. It works fine,
but strangely now, the dev team wants to enclose the whole string in
double quotes. Is there a way of enclosing the entire string in double
quotes? I know Oracle doesn't permit using the same.

This is a part of the string -

)+6;pVM=pVF.substring(y,pVF.indexOf(".",y));}}
else if (window.ActiveXObject && window.execScript){
  window.execScript('on error resume next\npVM=2\ndo\npVM=pVM+1\

Thanks in advance
Guru


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Álvaro G. Vicario  
View profile  
 More options Jul 3, 5:41 am
Newsgroups: comp.databases.oracle.server
From: "Álvaro G. Vicario" <alvaro.NOSPAMTH...@demogracia.com>
Date: Fri, 03 Jul 2009 11:41:07 +0200
Local: Fri, Jul 3 2009 5:41 am
Subject: Re: Usage of double quotes
guru.bhai.ru...@gmail.com escribió:

>      I have an insert statement that is embedded in a PHP code. It
> basically inserts a JS string. We have lots of single quotes inside
> the string which we replace by double single quotes. It works fine,
> but strangely now, the dev team wants to enclose the whole string in
> double quotes. Is there a way of enclosing the entire string in double
> quotes? I know Oracle doesn't permit using the same.

> This is a part of the string -

> )+6;pVM=pVF.substring(y,pVF.indexOf(".",y));}}
> else if (window.ActiveXObject && window.execScript){
>   window.execScript('on error resume next\npVM=2\ndo\npVM=pVM+1\

If you use the proper functions to escape or bind arguments, Oracle
should not care about what's inside your string (beyond charset issues,
which is a different story).

Are you sure your problem is not related to HTML/JavaScript? In
JavaScript, if you need to insert a double quote in a double quote
delimited string, you need to escape with backslashes:

var foo = "y,pVF.indexOf(\".\",y));";

--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
gym dot scuba dot kennedy at gmail  
View profile  
 More options Jul 3, 11:46 am
Newsgroups: comp.databases.oracle.server
From: "gym dot scuba dot kennedy at gmail" <kenned...@verizon.net>
Date: Fri, 03 Jul 2009 15:46:40 GMT
Local: Fri, Jul 3 2009 11:46 am
Subject: Re: Usage of double quotes

<guru.bhai.ru...@gmail.com> wrote in message

news:403784fb-d7c8-4a05-8f4a-c9c625b2d05b@h18g2000yqj.googlegroups.com...

use bind variables and then you won't care how the string is quoted.
(also you won't be subject to sql injection, you application will preform
better and scale better)
Jim

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google