View Single Post

   
  #23 (permalink)  
Old 04-24-2008, 06:09 PM
Michael Austin
 
Posts: n/a
Default Re: error with UNIQUE key length?

lawpoop@gmail.com wrote:
> On Apr 22, 5:46 am, "petethebl...@googlemail.com"
> <petethebl...@googlemail.com> wrote:
>> On 21 Apr, 22:40, "Paul Lautman" <paul.laut...@btinternet.com> wrote:
>>
>>> Confidential!!! It will be a list of fields with data types, sizes and field
>>> names. That is what all tables look like. How the !"!"££ can it be
>>> confidential!

>> That's what I was trying to say, but more politely.

>
> Well, if we have a database that's available to the public through a
> website, and some entreprising hacker wants to do an SQL injection,
> they would get quite a leg up if they could look up the exact names of
> our fields and tables.
>
> Of course we are taking every precaution to prevent SQL injections and
> other hacking attemps, and not broadcasting table definitions on the
> internet is part of that
>
> As far as confidential, saying that no table definition can be
> confidential because it's made up of the same parts ( tables and
> fields ) as any other database is like saying all programs are the
> same because they're all made up of vairable and operators. It's the
> arrangement of the parts that adds value. Surely, you would agree that
> certain database structures are better than others for particular
> problems. Or all they all the same? If they aren't the same, then a
> business person who invested money to get a better data model might
> want to protect their investment.
>
> Why couldn't Microsoft release the code for Windows? After all, it's
> made up of the same parts as any other program. And I'm not talking
> security wise, but competition-wise -- for example, not giving OS
> providers a leg up in creating platforms to run software written to
> run with the Windows API.
>
> Suppose we have a business model, expressed as a database, that is
> superior to our competitions', and that allows us to ship products
> faster for less money. Why would we want to then give our model to our
> competition? We spent a lot of time and money building it; it doesn't
> make business sense to give it to your competition for free.
>
> </OT rant>



of course, one can always obfuscate the field names so as to protect the
identities. A working (broken??) example is much easier to provide a
reasonable guess than not. 2 questions - How is the MD5 field defined
and how is the client_id field defined.

The error is that there is a duplicate.

what does
select guid,client_id from <tab> where guid =
'ba083c1576f8c555ef4ff0ae09dd33a7'

Worst case is that you have a corrupt index.
Reply With Quote