Receiving truncated keys to bt_compare function in python BTREE.

Hi
I'm not sure where to find the problem. I'm saving pickled (cPickle) datetime keys in the database, and set the comparison function to load those keys and compare. When I call the set_range function, the right_key value the comparison function gets is **sometimes** truncated. Left key (the one I send) is always fine. The data in the database is fine too.
Ex. Left key
"datetime\ndatetime\np1\n(S'\\x07\\xdd\\x08\\x1f\\x17\\x1f\\x1f\\x0f\\x10\\x02'\ntRp2\n."
right key (truncated)
"cdatetime\ndatetime\np1\n(S'\\x07\\xdd\\t\\x04\\x1642\\x"
The data is truncated even when it is a string representing an integer.
Do you know why? any fixes?
thank you,
Sachi.

Hi Sachi,
Can you provide more information about your use of BDB ? Including the BDB version and the python's extension version ?  Also, we would like to know the OS version.
We are not familiar with the python extension implementation, but if you can provide a test case to reproduce the issue, we can try to debug it to check where the issue happens.
Regards,
Winter

Similar Messages

  • Keyboard "use F-keys as standard function keys" setting gets reset on system restart

    Hi all,
    I have set in system preferences -> keyboard to "use f1, f2 etc. keys as standard function keys" or rather I want to keep this setting set but unfortunately this gets reset on each restart-
    I'm wondering what happened, this used to work initially with Lion. I may have set somewhere something that resets this on each start but I have no clue what that might be.
    Machine iMac mid 2011, keyboard Apple alu keyboard with cable (pre-Lion layout).

    Thanks BDAqua...sure looked like the function had disappeared over time and appreciate the confirmaion. Hard to understand why a function like that would be taken away. The program I run uses function keys f3,f7,f11 and f23(shifted f11) and I have all working okay by turning them off in keyboard and mouse menus. The f23 is causing issued in that when I use shifted f11 the screen scrolls upward instead of passing along the f23 function. Looks like I will have to work around this since the operating system will not allow the function keys to just work "standard"...thanks by the way for the welcome...!!

  • Use Function Keys as Standard Function Keys checkbox missing

    Is there a reason the "Use Function Keys as Standard Function Keys" checkbox is missing in my Keyboard/Mouse settings?

    Just go to the Keyboard shortcuts tab and uncheck the items assigned to the function keys or assign them to different keys.

  • Third Party keyboard- possible to "Use all F1, F2, etc. keys as standard function keys"?

    I've got a 3rd party Anker slim mac keyboard (http://www.amazon.com/Anker%C2%AE-Bluetooth-Wireless-Keyboard-Tablets/dp/B005ONM DYE).
    I really need to be able to use the F7 and F8 keys for my audio program (Pro Tools 10), but they always do the consumer-keys actions (rewind/play in itunes). Everywhere I look says to go to System Preferences and select the "Use all F1, F2, etc. keys as standard function keys" button, but since I have a third-party keyboard, that option does not exist. Using an applescript to try and do it anyway doen't work either. The closest I've gotten is using the freeware FunctionFlip, but that requires me to press and hold the Fn key to use them as function keys. I don't want that.
    Is there ANY way, official or third party, free or paid, that I can get this to work without buying a new keyboard?
    Thanks!
    Computer is a late 2012 Mac Mini with Mountain Lion

    Hello,
    I think Spark cured this for another person and the same problem...
    http://www.shadowlab.org/Software/spark.php

  • This only aplies to firefox not explorer. On firefox the home, pgup, pgdn,end & arrow keys do not function

    as I said above the move keys do not function properly only on firefox, this is a new problem

    You may have switched on [http://kb.mozillazine.org/accessibility.browsewithcaret caret browsing].
    You can press press F7 (on Mac: fn + F7) to toggle caret browsing on/off.
    * Tools > Options > Advanced : General: Accessibility: [ ] "Always use the cursor keys to navigate within pages"
    * http://kb.mozillazine.org/Scrolling_with_arrow_keys_no_longer_works
    * http://kb.mozillazine.org/Accessibility_features_of_Firefox

  • Since Mavericks, the scroll-with-modifier-key-to-zoom functionality often fails, and I have to deselect it and reselect it in the accessibility pref-pane to get it working again.

    Since Mavericks, the scroll-with-modifier-key-to-zoom functionality often fails, and I have to deselect it and reselect it in the accessibility pref-pane to get it working again.

    Take it to your local Apple Store or AASP, it's covered by a 1 year hardware warranty. If you have AppleCare then give them a call but I'm pretty sure they will advise the same. If you have not purchased AppleCare yet please do, this will extend the warranty to 3 years however it MUST be purchased within the first  year of ownership. Let it go 366 days and you are out of luck. AppleCare will also include telephone support too.
    Good luck.

  • "Use all F1, F2, etc. keys as standard function keys" checkbox missing in System Preferences/Keyboard since upgrade to OS X 10.9.5

    Since the last update to OS X 10.9.5, I no longer have a checkbox to use all F keys as standard function keys.  I've looked for any other possible solutions but can find none.  I have the 2007 aluminum keyboard (three batteries) with the latest firmware upgrade.
    Thanks.

    Thanks BDAqua...sure looked like the function had disappeared over time and appreciate the confirmaion. Hard to understand why a function like that would be taken away. The program I run uses function keys f3,f7,f11 and f23(shifted f11) and I have all working okay by turning them off in keyboard and mouse menus. The f23 is causing issued in that when I use shifted f11 the screen scrolls upward instead of passing along the f23 function. Looks like I will have to work around this since the operating system will not allow the function keys to just work "standard"...thanks by the way for the welcome...!!

  • I need to use the F12 key as a function key not as volume

    I am using a DOS system for work and need to use the F12 key as a function key and not volume how to I do this....... frustrating!

    Tried that still changes volume

  • For some reason the function keys on my mac book changed, I restored them and now the shift keys have the function of showing the desktop and all windows.  I there a way I can restore the original function?

    For some reason the function keys on my mac book changed, I restored them and now the shift keys have the function of showing the desktop and all windows.
    I there a way I can restore the original function?

    You do not tell us what OS version you have. In OS 10.8.2, do this:
    Apple Menu / System Preferences / Language and Text / Input Sources.
    Select the language you want. Mine is set to Canadian English.

  • DOT1X-1-INVALID_WPA_KEY_STATE: Received EAPOL-key message while in invalid

    I'm working on with a customer on a 2106 controller with 1130 series ap's. Everyting seems fine until the client does a reauthentication. At this point the clients send a stream of authentication attempts to the RADIUS server (40 or so a second). The RADIUS (Microsoft IAS) is passing the authetication. The Controller has the error: DOT1X-1-INVALID_WPA_KEY_STATE: Received EAPOL-key message while in invalid state (0) - version 1, type 3, descriptor 254 with the mac address of the offending client in the log, at the same rate of the authentication storm. The clients have current drivers. We are using the Microsoft supplicant and have the Microsoft updates (SP2 and relevant wireless patches) installed.
    I'm currently testing using the Intel supplicant, but have not been doing it long enough to see if it is an issue with that supplicant.

    Okay.... for this wlan ssid, you selected WPA+WPA2. Here you should define either WPA w/ tkip or WPA2 w/ AES.... or both. WPA2 performs better than WPA, but that depends on your client supporting WPA2. Since you selected PSK, you must of entered a pre-shared key. So in the AAA server tab, you don't have to enable local eap authentication.
    For local eap, you need to choose wpa+wpa2 and 802.1x. This will also require a certificate on the WLC. I won't go into this too much because you are using PSK. Now on the client side, you would configure the ssid and either wpa tkip or wpa2 aes and psk... not enterprise. Enter you pre-shared key in the client and you should be good to go!

  • My Media Keys are not functioning with iTunes 10.6.1...

    My Media Keys are not functioning with iTunes 10.6.1... As i said
    Keyboard: Microsoft Digital Media Keyboard 3000
    I've actually had this issue since like what, 10.4? I've tried that dll fix thing and that does nothing. Any help out there so I can play my music without having to leave the micro player popped up all the time?

    And included on the retail sales box.
    http://www.apple.com/iphone/specs.html
    Syncing with iTunes on a Mac or PC requires:
    Mac: OS X v10.6.8 or later
    PC: Windows 7; Windows Vista; or Windows XP Home or Professional with Service Pack 3 or later
    iTunes 10.7 or later (free download from www.itunes.com/download)

  • Option key can't function to access start up manager, so i can't choose startup disk. please help me

    option key can't function to access start up manager, so i can't choose startup disk. please help me

    If you have Apple Care, call them and get a case number.  Otherwise, take the computer to an Apple store or an AASP.  Whichever is more convenient for you. 

  • The top row of keys (fn keys) stuck on function only?

    I was working normally on my Mac (Air with OS X Yosemite) and suddenly the top row of keys (such as volume, brightness etc.) stopped working normally. It acts as a function key only and I can't adjust volume, brightness etc. from there, which is annoying. I have checked I don't have the "use all F1, etc. keys as standard function keys" on in settings and I just don't know what to do.
    Does anyone knows the solution?
    Thank you

    Hello there, VeganB.
    When one or more keys are not responding, the following Knowledge Base article offers up some great steps for troubleshooting your keyboard:
    One or more keys on the keyboard do not respond - Apple Support
    Some keys don't work as expected
    From the Apple menu, choose System Preferences.
    From the View menu, choose Speech.
    Click the Text to Speech tab.
    If "Speak selected text when the key is pressed" is enabled, the key or key combination set to speak text cannot be used for other purposes or used to type text--click Set Key and change it to a less-commonly used key combination (try to use modifier keys such as Shift, Command, Option, and Control). Or, disable the "Speak selected text when the key is pressed" option.
    Click the Accessibilty or Universal Access pane in System Preferences, then click the Keyboard tab.
    Make sure that Slow Keys is turned off. With Slow Keys on, you need to press a key for a longer period of time for it to be recognized.
    In the Accessibilty or Universal Access pane, click the Mouse tab, and make sure Mouse Keys is turned off. With Mouse Keys enabled, you cannot use the Numeric Keypad to enter numbers--instead the keypad moves the pointer (cursor). (There is an option to enable Mouse Keys with five presses of the Option key; you may want to turn that option off to avoid accidentally enabling it.) If Mouse Keys is enabled and you are using a keyboard with no numeric keypad or Num Lock function, see Unable to type while Mouse Keys is enabled in Mac OS X.
    If the function keys on the top row of the keyboard are not working as expected, see Mac OS X: How to change the behavior of function keys.
    If the issue persists, use Keyboard Viewer to help isolate the issue:
    Click the Language & Text pane (Mac OS X v10.6) or International pane (Mac OS X v10.5.8 or earlier) in System Preferences.
    Click the Input Sources tab (or Input Menu tab in Mac OS X 10.5.8 or earlier).
    Click the Keyboard & Character Viewer "On" checkbox to select it (click the Keyboard Viewer "On" checkbox in Mac OS X 10.5.8 or earlier).
    From the Input (flag) menu, choose Show Keyboard Viewer.
    If the keyboard is connected and detected by OS X, the keys you type will highlight in the Keyboard Viewer window. Open TextEdit (or any text application), and try to type something using the keys that were previously not responding to see if they highlight in Keyboard Viewer.
    Start from the Mac OS X Install Disc, choose Terminal from the Utilities menu and test the keys which were previously not working.  If the keys work while started from the Install disc, then the keyboard itself is working correctly.  Use How to troubleshoot a software issue to isolate the software issue that may be causing the keys to not respond.
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • How to activate office 365. Didn't receive product key

    Hi,
    I bought this product on 2/13/2015. I didn't receive product key to activate the Office 365. How can I activate Office 365 now?

    Yeah that's a trial version you have to buy Office 365. 

  • Reinstalled CS6, then short cut keys are not functioning

    Using Mac OS 10.9.5, Photoshop icon was had disappeared suddenly today so re-installed with DVD, then shortcut keys are not functioning,,,what to do??? help!

    Do you have the correct Easy Setup selected for FCP and your camera?
    Is a known working FireWire cable connected between your computer and camera?
    Can you put the camera into play, forward or rewind using the FCP interface?
    Have you used this camera to capture material before with success?
    Are the timecodes in your Batch list correct - no typing errors, or conflicting timecodes?
    Is the tape rewound to the beginning and at a position where it can establish a timecode
    to begin capturing from?
    is it possible to remove the clip name from the clip
    Yes, but that's not very useful when you want to identify which clip it is. It would be simpler to toggle to a larger track height ( click the largest of the 4 boxes at bottom left of your timeline window ) this makes the waveform easier to see and analyze anyway.

Maybe you are looking for

  • Message: When opening itunes it says Multiple users on computer log out

    I recently bought an ipod and while transferring my cd's I noticed the tab that usually says my ipod has disappeared.I'm getting an error message that's telling me to log out since there are multiple users on the computer. I only have one account and

  • How can we give a placeholder to the complex table like "Please Select" in WPF

    How can we give a placeholder to the complex table like "Please Select" in WPF. Actually i have to give a default value like "please select" to the complex table in WPF. I tried with placeholder but its not working. Tags edited by: Michael Appleby

  • Setting the property of a managed bean

    Hello, I have just started working on a project that I would like to use Java server Faces. I am very new to JSF so please forgive the question if it is too obvious. We are doing a login form with a username, password and key. The key is an image tha

  • How to set up smart folder in icloud mail

    can you get smart folders on icloud mail macpro 10.6.8

  • Dbm_getf_error and tp-error

    Hello! I have the error by the executing the Tcode DB59. The connection test is not successful and retrieves error in SAPDB_DBM (DBMRFC command line). I tried to execute the tp-commando from CMD and retrive also the error: >tp connect <SAPSID> error: