Einträge für Februar 2006

myndian.de

Donnerstag, 2. Februar 2006

Das könnte ihnen gefallen

Meine Lieblinds CDŽs:
Eine Liste von [...], Schülerin ( 15 Jahre alt )
(19 Artikel)


Warum meint Amazon eigentlich, dass mich sowas interessieren würde? Neulich wurden mir Hörspiele “für Erwachsene” angeboten. “Das könnte ihnen gefallen.” Nö! Warum sollte es? Auch das “Das Lehrerhasser-Buch” interessiert mich nicht die Bohne, genauso wenig wie DVD-Boxen mit allen Staffeln diverses Soaps und Sitcoms, deren Namen ich nicht mal kenne.

Naja, eigentlich ist die Trefferquote gar nicht so schlecht, aber manchmal sind die Vorschläge sowas von aus der Luft gegriffen. Da könnte ja meine Verwandschaft bessere Vorschläge machen. ;-)
Geschrieben von Jörg in Alltag, Internet um 15:58 | Kommentare (0) | Trackbacks (0)
Tags für diesen Artikel: amazon, internet, shop

weird subselect behaviour

This week we had a very confusing problem with a SQL subselect in a JDBC PreparedStatement for MS SQL Server. I looks like the following:

UPDATE table_a
SET intCol_A = (SELECT intCol_B
FROM table_b
WHERE strCol_B = ?)
WHERE strCol_A = ?


Very simple and easy to understand. It’s works fine until the first question mark was replaced by the null value. Boom!

strCol_B has no null value and should not have one. So logically the subselect should not select anything and return the null value. But it does not. It selected always the same value from strCol_B! (Not intCol_B!) A very weird behaviour. The string was a guid made of capitals and digits, so it could not be casted as an integer, which leads to an error.

How we fixed this? Instead of null we now use a string strCol_B can not contain: $NIL%. The subselect now does not select anything and returns the null value. All fine now.

Weird, isn’t it?
Geschrieben von Jörg in Softwaretechnik um 14:16 | Kommentare (0) | Trackbacks (0)
Tags für diesen Artikel: database, java, jdbc, ms sql server, sql
« vorherige Seite   (Seite 3 von 3, insgesamt 12 Einträge)

Suche

Statische Seiten

Startseite
Galerien
Impressum

Kategorien

  • XML Alltag
  • XML Internet
  • XML Musik
  • XML Politik
  • XML Reise
  • XML Softwaretechnik
  • XML Sonstiges
  • XML Visuelles

Alle Kategorien

Archive

Mai 2012
April 2012
März 2012
Das Neueste ...
Älteres ...

Blog abonnieren

XML RSS 2.0 feed
ATOM/XML ATOM 1.0 feed
XML RSS 2.0 Kommentare

Login

Verwaltung des Blogs

Login

Aktuelle Einträge

Netzwerkkultur verändert die Gesellschaft
Dienstag, 17. November

Absolute and relative date and time
Sonntag, 18. Oktober

Oren Lavie - Her Morning Elegance
Dienstag, 6. Oktober

Twitter & Blogroll
Samstag, 8. August

Read It Later: Round-Trip-Integration mit Firefox und Google-Reader
Montag, 3. August

Blogroll

* Jörg bei Twitter
* Jens bei Twitter
* Nils bei Twitter

* Beetlebum
* a life less ordinary?
* Martin Fowler's Bliki
* Springify
* BILDblog
* Plazeboalarm
* LawBlog
* ADOM Blog
* Being busy
* Dr. Gero Presser

Links

* Heise
* The Scala Programming Language
Nils' Fotos bei fotocommunity.de
Jogi auf Qype
Get Firefox!
Use OpenOffice.org

Heise News

* Streit um Itanium spitzt sich zu

* Facebook: Der schwache 100-Milliarden-Dollar-Start

* Juristen sehen ACTA-Prozedere in den USA als verfassungswidrig an

* Sicherheitslücke bei Kreditkartendienstleister größer als gedacht

* Facebook-Aktie startet an der Börse mit 42 US-Dollar

kostenloser Counter