Hi,
I have the following scenario.
class foo
{
...
private:
char *_test;
};
void foo::setTest()
{
if( 0 != _test ) delete [] _test;
}
The function setTest throws an error when first run as it trying to delete _test when it has not been assigned yet. This is happening because _test is not set to 0X0.
Can anyone help me to ...
How do you delete rows from a table, where a column contains a substring, but the type of that column is 'Long'. (Yes, I know I shouldn't use Long, but I'm maintaining someone else's mess).
My first attempt was:
delete from longtable
where search_long(rowid) like '%hello%';
(following on from this answer)
This returns:
S...
I have an output like this:
id name date school school1
1 john 11/11/2001 nyu ucla
1 john 11/11/2001 ucla nyu
2 paul 11/11/2011 uft mit
2 paul 11/11/2011 mit uft
i will like to achieve this:
id name date school school1
1 john 11/11/2001 nyu ucla
2 paul 11/11/2011 mit uft
...
Which is the best way do delete a file on FAT32 file system securely (i.e. make it impossible to recover the file). Is overwriting the file with garbage and then deleting it secure? Could anyone suggest a good reading on this?
...
When I do a simple delete of the contents of a folder, I get an error:
<delete includeemptydirs="true">
<fileset dir="${developmentenvironment.www.dir}" includes="**/*"/>
</delete>
C:\Users\...\build.xml:42: Unable to delete file C:\...\www\appserv\AUTHORS.txt
When, I try to delete the file in the OS, it requires elevated permiss...
I guess there must be auto reindex everytime a delete takes place. If there are too many deletes for many tables resulting in many records deleted, reindexing will also be time consuming. Is there any way where reindexing is avoided in delete and it's done later in a batch mode?
...
Hi,
I am trying to display checkboxes in front of every row in list view. So that after selecting the desired checkboxes user clicks on delete button and we should delete that records.
but how can it be done?
...
I get the following error when I try and execute the code down below. I have added the sql string I pass as well. What am I missing?
Error:
Syntax error (missing operator) in query expression 'TOURID = 25e5eed3-ea84-4c30-a660-2c880253da60'.
sql:
"DELETE * FROM TOURS WHERE TOURID = 25e5eed3-ea84-4c30-a660-2c880253da60;"
Dim connectio...
I can use this verb in the Python Windows SDK. But not in production. Why? What am I doing wrong?
The error message includes (only seen via firebug or fiddler)
Malformed request
or something like that
My code looks like:
from google.appengine.ext import db
from google.appengine.ext import webapp
class Handler(webapp.RequestHand...
How do I delete a record using Linq to SQL using only the primary key, without having to retrieve the exsting record from the database?
...
Hi, I have a join which deletes rows that match another table but the joining fields have to be a large varchar (250 chars). I know this isn't ideal but I can't think of a better way. Here's my query:
DELETE P
FROM dbo.FeedPhotos AS P
INNER JOIN dbo.ListingPhotos AS P1 ON P.photo = P1.feedImage
INNER JOIN dbo.Listings AS L ON P.account...
When you allocate an array using new [], why can't you find out the size of that array from the pointer? It must be known at run time, otherwise delete [] wouldn't know how much memory to free...
Unless I'm missing something?
...
Hi!
It is the last problem I have before finishing my widget so I beg you
to help me!
I've created a widget wich can navigate in SMS/Inbox, and deleting
them...
When I delete one at the position 5 for example, this one is deleted,
the other next are at the position before and the messages before the
one deleted don't change of position.....
i have 2 tables without any cascade deletind. i wont to delete parent object with all child objects. i do like this
//get parent object
return _dataContext.Menu.Include("ChildMenu").Include("ParentMenu").Include("Pictures").FirstOrDefault(m => m.MenuId == id);
//then i loop all child objects
var picList = (List<Picture>)menu.Pictures.To...
In wiki article for REST
it is indicated that if you use http://example.com/resources DELETE, that means you are deleting the entire collection.
If you use http://example.com/resources/7HOU57Y DELETE, that means you are deleting that element.
I am doing a WEBSITE, note NOT WEB SERVICE.
I have a list that has 1 checkbox for each item ...
Every time I do a git diff, despite a MILLION commits since the first one, it keeps on giving me these REALLY OLD changes that were committed AGES ago to do with file deletions.
I deleted an entire folderful of stuff in a commit about 7 commits ago, and still on branch or merge, git acts like the deletion is new. Doing GIT DIFF STILL s...
So, I've got a DAO that I used to load and save my domain objects using JPA. I finally managed to get the transaction stuff working (with a bunch of help from the folks here...), now I've got another issue.
In my test case, I call my DAO to load a domain object with a given id, check that it got loaded and then call the same DAO to dele...
Hi there,
I've accidentally copied a large part of a folder tree from my SVN working copy to my shared Windows web host via FTP.
The site is now littered with .svn directories and and I need some way of cleaning them. The only access I have to the server is via FTP, or by running a script on the server.
Does any one have a script whic...
Is deleting a pointer same as freeing a pointer (that deallocates the memory)?
...
Let's say I have created two objects from class foo and now want to combine the two. How, if at all possible, can I accomplish that within a function like this:
def combine(first, second):
first.value += second.value
del second #this doesn't work, though first.value *does* get changed
instead of doing something like
def combi...