Prepared Statement 8.1.7 problem with spaces

I have a char field that is char(10). It has characters like '39' stored in it. That is of course space filled.
When I try to use that field in a select statement where clause in a prepared statement it does not return any rows.
However, if I define the column as char(2) it works. If I define the column as varchar2(10) and put '39' in it (2 length) it works.
What is the problem anyone? I am using Java 1.3.1, and the Oracle JDBC thin client newest .jar file (12) for Oracle8.i
I have seen others have this problem but no solutions?

Update to problem
I have the latest (classes12.zip) JDBC drivers from Oracle.
We are running Oracle 8.1.6 and converting to Oracle 8.1.7.
This works the same with both.
Example, I have a column (char(10)) with trailing spaces. i.e. '39 '.
When I perform a Prepared Statement with that column in the where clause, it returns no result rows.
When I perform a standard statement with that column in the where clause, it returns rows.
When I define a column char(2) and use it in the where clause it works fine.
When I define a column varchar2(10) and load it with data like '39', it works fine.
When I define a column varchar2(10 and load it with data like '39 ', it does not work.
When I execute this same Prepared Statement through the jdbc:odbc bridge it works fine.
I cannot change the definition of the columns as they are foreign key data. What is the problem here? Any help is appreciated.
If you need further information please feel free to contact me.

Similar Messages

  • I'm not able to download Itunes.  I keep getting this Apple Software Update message that states "There is a problem with this Windows installer package.  A program required for this install to complete could not be run.  Contact your package vendor"

    Not able to access Itunes store anymore.  Just quit working for no reason.  I've tried deleting Itunes and related components from the Control Panel, but when I try to remove Apple Software Update, I get a message that states "There is a problem with this Windows installer package.  A program required for this install to complete could not be run.  Contact your support personnel or package vendor".  Not sure what this message means.  Am I suppose to contact Apple ?  What is meant by package vendor ?

    Apparently it's an itunes issue. I just tried to update and got the same issue. Called att to activate my iphone 4s and they say they can do the swap but apple is telling them itunes is down atm.  So will have to wait

  • HT1567 i can not sync my new purchased music into my ipod, it states there is a problem with the drive

    i can't sync my new purchased music into my ipod, it states there is a problem with the drive.

    Hey Texasdee07,
    I found the following information that should resolve the issue:
    To repair an iPod disk—Restore the iPod or iPod shuffle using the latest version of iTunes.
    Warning: Be sure to back up your data before restoring an iPod. The restore process cannot be undone. All of your songs and files will be deleted.
    via: 'Disk cannot be read from or written to' when syncing iPod or 'Firmware update failure' error when updating or restoring iPod
    http://support.apple.com/kb/HT1207
    Welcome to Apple Support Communities!
    Sincerely,
    Delgadoh

  • DW CS5.5 in OSX Lion - anyone seeing problems with Spaces?

    DW seems to have problems with Spaces in OSX Lion.Switching into DW from other spaces is not 'clean'. When DW comes up, sometimes the Code/Design is blank white, and windows within the workspace don't show their headers. Clicking on Code/Design redraws that window, but the only thing that seems to recover the window headings is switching to and then back from another app in the same Space.
    Seems like screen redrawing triggered by switching apps within the same Space is a little different than that triggered by switching apps across Spaces.
    Anyone else seeing this?

    I did report it as a bug, using the link kindly provided by you and Shocker.
    The two Macs I've tried this on now are a Mac Pro and an iMac, so there's no Automatic Graphics Switching option to enable/disable.
    I was only able to check this out on the iMac late last night.
    Hardware synopsis:
    Mac Pro Early 2009
    Processor  2 x 2.93 GHz Quad-Core Intel Xeon
    Memory  16 GB 1066 MHz DDR3 ECC
    Graphics  NVIDIA GeForce GT 120 512 MB
    Software  Mac OS X Lion 10.7 (11A511)
    The iMac isn't available to me at the moment, I'll have to fill in missing details later (can't remember the exact graphics card info):
    DW is CS5, not CS5.5, was also installed well ahead of the Lion upgrade
    Computer is iMac instead of Mac Pro, about 1.5 years old
    Quad-Core i7
    4GB memory
    Mac OS X Lion 10.7
    I used the same procedure upgrading to Lion on the iMac...
    Ran Cocktail 'Pilot' to clean up the system prior to install (runs Daily, Weekly, Monthly maintenance scripts, clears System, User, and Internet caches, repairs disk permissions on "Macintosh HD", clears log files)
    OS10.7 was purchased through the Mac App Store and installed.
    JRE installed.
    DW on the iMac exhibited the same problem as on the Mac Pro.
    To reproduce:
    Start DW, open a file for editing
    Start any other app in the same Space
    Open a new Space, open any other app there.
    Test switching between DW and other apps in the same Space compared with switching between DW and other apps in different Spaces.
    Consistently, when I switch between DW and other apps in the same Space, DW's windows/panels redraw properly,
    and when I switch between DW and other apps in different Spaces, DW's windows/panels don't redraw properly.

  • Cannot install itunes 10.6. pop up msg states "There is a problem with this Windows Installer package. A program required for this install to complete could not be run.Contact ur support personnel or package vendor

    Cannot install itunes 10.6. pop up msg states "There is a problem with this Windows Installer package. A program required for this install to complete could not be run.Contact ur support personnel or package vendor.Please advise.

    Follow Microsoft instructions below on how to take control of the Folder. You may apply this on your C:\Program Files(x86)\iTunes
    You may take the ownership of the folder and then use the steps to grant permission to everyone–
    Locate the file or folder on which you want to take ownership in windows explorer 
    Right click on file or folder and select “Properties” from Context Menu 
    Click on Security tab 
    Click on “Advance”  
    Now click on Owner tab in Advance Security Settings for User windows 
    Click on Edit Button and select user from given Change Owner to list if user or group is not in given list then, click on other users or groups. Enter name of user/group and click ok. 
    Now select User/group and click apply and ok. (Check “Replace owner on sub containers and objects” if you have files and folder within selected folder) 
    Click ok when Windows Security Prompt is displayed 
    Now Owner name must have changed. 
    Now click Ok to exist from Properties windows 
    Once you have taken the ownership of file or folder
      Grant Permissions to everyone- 
    Go to C: and then click right click on folder and chooseproperties. 
    Then go to security tab and click Edit then clickAdd => Advanced. 
    If you click on advanced now click on Find Now and chooseeveryone and click Ok. 
    Then again click Ok and now click onAllow => Full control => Ok.

  • Problem with Spaces that started with Snow Leopard

    I've noticed two problems with Spaces that have arrived since switching to Snow Leopard... First, if I am in say Space 1 where I use Safari and I then want to move over to an open application, say like Excel, that I have running in Space 4, there are a number of ways to get there but one way I used to use all the time was to move down to the Dock and simply single click on the open Excel application and that would immediately switch me over to Space 4 and whatever Excel documents were already open there... Now, since switching to SL, a single click of whatever application in the Dock makes that application active in the Finder (you see its name appear in the upper left of the menu bar) but otherwise nothing happens... You then have to click a second time and then you switch over to Space 4... It's not really a double click because that implies to clicks closely spaced in time... For this, you can click once, leave the room, come back, click a second time and you will now switch to the alternate space where the open application is running... That is clearly different than it was under Leopard and I would suggest that it is a bug because there is no value in the outcome of that first click... It highlights the switched application but doesn't actually switch to it until you click a second time...
    Second, and this one is worse, if you say launch Excel (which you want to open in Space 4) while you are in Space 1, Excel will open and switch over to Space 4... So far so good... But now, with Excel open over in Space 4, if you are now back and working in Space 1 and while there you use the Finder to go to some other, currently unopened, Excel file and request that it open, it should switch over to Space 4 and open that file but instead it opens it wherever you are, in the case mentioned here, in Space 1... So now you have Excel files opened both in Spaces 1 and 4... Clearly a bug... Spaces had some similar issues in a few early versions of Leopard but they eventually got it working... Now it appears Spaces has regressed somewhat in SL... I love spaces and use it all the time... Hope it gets fixed soon... thanks... bob...

    Hi... I have since learned that the first paragraph of my original post where I say,
    "I've noticed two problems with Spaces that have arrived since switching to Snow Leopard... First, if I am in say Space 1 where I use Safari and I then want to move over to an open application, say like Excel, that I have running in Space 4, there are a number of ways to get there but one way I used to use all the time was to move down to the Dock and simply single click on the open Excel application and that would immediately switch me over to Space 4 and whatever Excel documents were already open there... Now, since switching to SL, a single click of whatever application in the Dock makes that application active in the Finder (you see its name appear in the upper left of the menu bar) but otherwise nothing happens... You then have to click a second time and then you switch over to Space 4... It's not really a double click because that implies to clicks closely spaced in time... For this, you can click once, leave the room, come back, click a second time and you will now switch to the alternate space where the open application is running... That is clearly different than it was under Leopard and I would suggest that it is a bug because there is no value in the outcome of that first click... It highlights the switched application but doesn't actually switch to it until you click a second time... "
    ...that turned out to be my mistake... In another post someone pointed out that in Spaces preferences you must have checked ON the preference that says,
    "When switching to an application, switch to a space with open windows for the application"...
    I had been playing with a number of things trying to figure out what was going on and somewhere in the mix had switched that off... (It is on on all my other computers and I'm sure it originally was on this one too)... When I switched it back on the above described problem went away... So that was my fault...
    But the second part,
    "Second, and this one is worse, if you say launch Excel (which you want to open in Space 4) while you are in Space 1, Excel will open and switch over to Space 4... So far so good... But now, with Excel open over in Space 4, if you are now back and working in Space 1 and while there you use the Finder to go to some other, currently unopened, Excel file and request that it open, it should switch over to Space 4 and open that file but instead it opens it wherever you are, in the case mentioned here, in Space 1... So now you have Excel files opened both in Spaces 1 and 4... Clearly a bug... "
    ...is a real problem... I fired up my G4 (power pc) that runs Leopard, 10.5.8, to see whether it behaves the above way or not and it does NOT... It works as one would expect.. So at least later in Leopard, the above mentioned problem was not present but it is in this first incarnation of Snow Leopard...
    To me, the utility of Spaces is all about keeping a single desktop from being cluttered with many open applications/files and to now have an application that opens in whatever space you happen to be in after it is first opened in its "correct" space sort of defeats the idea behind Spaces... I am currently trying to train myself to first hit <command><4> (my Excel space) before opening a second or subsequent Excel document to prevent it from opening somewhere where I don't want it to be...
    Again, I hope Apple sees and fixes this... I did submit an "Apple feedback" item for this issue... thanks... bob..

  • Problems with spaces in directory or file names and Word.exe

    Hi
    I'm trying to open a file with Word from my java aplication, and I have a problem with some file/directory names.
    I have this
    String cmd = "c:\\Program Files\\Microsoft Office\\Office10\\WINWORD.EXE" + " " + path;
    try {
    Runtime.getRuntime().exec(cmd);
    } catch (Exception errorea){ }
    Here is what happens:
    if path is something like this: "c:\people\info.doc" , there's no problem, Word opens the document, but if path contains blank spaces somewhere, it doesn't work. For example:
    path = "c:\Documents and Settings\info.doc"
    path = "c:\Hi everybody\info.doc"
    path = "c:\tests\test results.doc"
    with the above examples it doesn't work :( Word tries to open "c:\Documents", "c:\Hi" or "c:\tests\test".
    Can anyone help? thanx a lot ! : )

    No, the exec method runs the Word.weird, it shouldn't, and it wouldn't on my system going by the test I just made, but I'm running linux & not windows, maybe the command line parsing is different for some reason.
    The problem is that
    Word starts and then Word says that it can't open the
    file because the name or the path to the file is not
    valid.You still should use the overload that takes a String array.

  • Problems with spaces in file or directory names and Word.exe

    Hi
    I'm trying to open a file with Word from my java aplication, and I have a problem with some file/directory names.
    I have this
    String cmd = "c:\\Program Files\\Microsoft Office\\Office10\\WINWORD.EXE" + " " + path;
    try {
    Runtime.getRuntime().exec(cmd);
    } catch (Exception errorea){ }
    Here is what happens:
    if path is something like this: "c:\people\info.doc" , there's no problem, Word opens the document, but if path contains blank spaces somewhere, it doesn't work. For example:
    path = "c:\Documents and Settings\info.doc"
    path = "c:\Hi everybody\info.doc"
    path = "c:\tests\test results.doc"
    with the above examples it doesn't work :( Word tries to open "c:\Documents", "c:\Hi" or "c:\tests\test".
    Can anyone help? thanx a lot ! : )

    Hint: use the variant Runtime.exec(String[] args).
    Create a command array, with each token in a separate argument. The entire filename with spaces goes into one argument.

  • [SOLVED] problem with spaces and ls command in bash script

    I am going mad with a bash script I am trying to finish. The ls command is driving me mad with spaces in path names. This is the portion of my script that is giving me trouble:
    HOMEDIR="/home/panos/Web Site"
    for file in $(find "$HOMEDIR" -type f)
    do
    if [ "$(dateDiff -d $(ls -lh "$file" | awk '{ print $6 }') "$(date +%F)")" -gt 30 ];
    then echo -e "File $file is $(dateDiff -d $(ls -lh "$file" | awk '{ print $6 }') "$(date +%F)") old\r" >> /home/panos/scripts/temp;
    fi
    done
    The dateDiff() function is defined earlier and the script works fine when I change the HOMEDIR variable to a path where there are no spaces in directory and file names. I have isolated the problem to the ls command, so a simpler code sample that also doesn't work correctly with path names with spaces is this:
    #!/bin/bash
    HOMEDIR="/home/panos/test dir"
    for file in $(find "$HOMEDIR" -type f)
    do
    ls -lh "$file"
    done
    TIA
    Last edited by panosk (2009-11-08 21:55:31)

    oops, brain fart. *flushes with embarrassment*
    -- Edit --
    BTW, for this kind of thing, I usually do something like:
    find "$HOMEDIR" -type f | while read file ; do something with "$file" ; done
    Or put those in an array:
    IFS=$'\n' ; files=($(find "$HOMEDIR" -type f)) ; unset IFS
    for file in "${files[@]}" ; do something with "$file" ; done
    The later method is useful when elements of "${files[@]}" will be used multiple times across the script.
    Last edited by lolilolicon (2009-11-09 08:13:07)

  • Problem with spaces in filenames

    Created a photo album in iPhoto and exported to iWeb. When I try to upload to my Comcast homepage, several graphics elements in the photo album page have spaces in their filenames and Comcast balks. Is there a way to keep iPhoto/iWeb from utilizing filenames with spaces in them? Thanks.
    MacBook Pro   Mac OS X (10.4.8)  

    Hi Stanley...
    I'm glad that you got your space problem fixed. If you ever update your site, though, you'll have to redo all of your hard work eliminating the spaces. Here's a little utility that will do this for you a little bit more automatically...
    http://www.brokenropesoftware.com/iWebFTPUtility/iWebFTPUtility.html

  • I cannot install itunes to my windows 7 computer. I've deleted everthing apple related (in order recommended). I get a message each time that states "There is a problem with this windows installer package. etc.. What should I do?

    I've also spent hours on the phone with both apple and windows technical support specialists. This is very clearly not a windows issue. I've given my computer a clean boot, disable my antivirus and firewall, and then attempted to download (yes, from apple's website). I've delete all of the programs (in the necessary order) and then attempted reinstalling with absolutely no luck. I'm starting to think that there's absolutely nothing I will be able to do. I've also never been able to fine "apple software updater or apple software update on my computer, which is particularly odd because I haven't found a post in this community that answers that question. No, "apple software update" cannot be found by accessing the start menu or anything in the "C drive". Apple software update is also never included in the itunes download package that I get from apple's website (the others, such as bonjour, apple application support, and apple mobile support are). No matter what I do, I always get the mesage at the end of the download, "There is a problem with this windows installer package. A program required for this install to complete could not be run. Contact your support personnel or package vendor."
    This may or may not be related to the "apple software update" issue.

    Apparently it's an itunes issue. I just tried to update and got the same issue. Called att to activate my iphone 4s and they say they can do the swap but apple is telling them itunes is down atm.  So will have to wait

  • Problems with spaces in Library Paths - JDEV 9.0.4.0

    We recently moved from JDev 9.0.3 on NT to JDEV 9.0.4 on XP.
    None of the projects we had previously will run in OC4J under the new version of JDeveloper. The problem appears to be the class paths of the library files, some of the root project folders have spaces in them and JDev doesn't appear to like it.
    our file structure is like this
    D:\Dev\My Workspace\MyProject\src
    D:\Dev\My Workspace\MyProject\classes
    etc.. with the root package under source. All no brainer stuff.
    The error reported in the logging window looks like this
    Source Workspace\\MyProject\\classes;D:\\Dev\\My does not exist.
    Now if I change "My Workspace" to "MyWorkspace" in the library path the app runs fine.
    Can anyone tell me why the space is causing a problem when it never has before?

    Seems like the JDEV 9.04 Classpath format is set to not include any spaces in it.

  • Problem with spaces between objects

    Hi, this is a basic yet perplexing issue for me. I created a
    table 3 rows, 3 columns, and inserted images into different cells.
    In DW, it looks like the images are right next together, but when I
    preview in IE or Firefox, you can see a space in between the
    images. I set border to 0 and tried playing with the image sizes,
    but I can't get the images to appear side by side without a gap
    when viewed in browser. What can I do to correct this
    problem?

    <table border="0" cellspacing="0" cellpadding="0">
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "(_seb_)" <[email protected]> wrote in message
    news:f0e6p6$s73$[email protected]..
    >I Dream ofWeaver wrote:
    >> Hi, this is a basic yet perplexing issue for me. I
    created a table 3
    >> rows, 3 columns, and inserted images into different
    cells. In DW, it
    >> looks like the images are right next together, but
    when I preview in IE
    >> or Firefox, you can see a space in between the
    images. I set border to 0
    >> and tried playing with the image sizes, but I can't
    get the images to
    >> appear side by side without a gap when viewed in
    browser. What can I do
    >> to correct this problem?
    >>
    >
    > what about the cellspacing and cellpadding for your
    table?
    >
    > <table border=0 cellspacing=0 cellpadding=0>
    >
    > that should do it.
    >
    > --
    > seb ( [email protected])
    >
    http://webtrans1.com | high-end web
    design
    >
    > An Ingenious WebSite Builder:
    http://sitelander.com

  • Problem with space between rendered items in a list component

    Hi,
        Thanks again for taking your time to read my newbie posts. I found (and prove) over the internet that I can set some space between rendered items of a list based component using paddingTop and padding Bottom (vertical space), so I asume that I can do the same thing with paddingLeft and paddingRight. But as a matter of fact, it didn't work, why? that's what I would like to know, and how can I solve this. I would really apreciate if you help me do this.
    Thanks again
    Sebastián Toro O.

    Yeah, it is inconsistent.  The renderer has to implement paddingLeft/Right.
    It was done this way for performance reasons.  The Spark List in Flex 4 is
    more consistent.

  • Problem with space and toURI()

    Hi,
    My program is working #1 when I create a MediaLocator like that:
    mediaLocator = new MediaLocator(file.toURL());
    But I know that toURL is depreciated so I changed it to
    mediaLocator = new MediaLocator(file.toURI().toURL());
    And now, when my path contain spaces, it create a folder with %20 instead of space...
    For exemple:
    c:\Documents%20and%20Settings
    instead of
    c:\Documents and Settings
    Thanks for help!

    This works for me - with my videos in
    C:\Workspace\JMF\src\\jmf\My videos
         private void playFile(File f) throws Exception{
            System.out.println("file - '" + f.getPath()+ "'");
            MediaLocator mL= new MediaLocator("file:" + f.getCanonicalPath());
            DataSource dS = Manager.createDataSource(mL);
            Processor proc = Manager.createProcessor(dS);
            proc.addControllerListener(this);
            proc.configure();
         }

Maybe you are looking for

  • Please help - Photos not saving

    I would appreciate some help here- the photos I take, screenshot, and try to save will not save to my camera roll. I can take, screenshot, and press the save button, but they won't save to the camera roll! I didn't update lately, (iPad is up to date)

  • Apple TV 2 is stuck on the "setting calendar/date"-screen forever. Please help!

    My Apple TV 2 will not start, whatever I do. It's stuck on a screen which says "setting calendar/clock/date" (or something like that), and never gets past it. I've been waiting for it to fix itself for about two hours - so waiting wont fix it. Resett

  • Original Ipad Question

    I just bought a brand new original IPAD (Ipad 1). Question when I try to get it to sync I get an error message reading pairing record is missing. Does anyone know how I can resolve this?

  • Pls.  tell  place in whole sap where purchase order field can be made req.

    can anyone tell me all those t.codes from where i can make purchase order a required field. i want to have control through purchase order. is it possible to have control if i make sorting key 014 in vendor recon account. and fsg g067 contains purchas

  • Delete the Contact app, how is this possible?

    both  my ios devices show my contacts app as installing, waiting for the download to start. like they were normal apps, not one of apples. If I tap and hold on the app, it lets me delete it. I did this on the iPhone after doing a phone restore did no