Jump to content
Fórum Script Brasil
  • 0

Banco de dados SQL


galera

Question

Estou tendo problemas com o case-sensitive do nome da coluna no odbc_result. Exemplo:

$query = "Select sampleField from sampleTable";
    $res = odbc_exec($db, $query);
    odbc_fetch_row($res);
    $var = odbc_result($res, "SaMpleFieLd");
A função odbc_result falha retornando:
Warning: odbc_result() [function.odbc-result]: Field SaMpleFieLd not found in ......

Isso está acontecendo em um ambiente Apache/Linux/FreeTds/SqlServer, e isso funciona corretamente num ambiente Apache/Windows/Native Odbc drivers/SqlServer.

Eu procurei muito por qualquer tipo de configuração para o freetds, ou para o php para desabilitar esse case-sensitive, mas não achei.

Alguma idéia?

Edited by galera
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      152.2k
    • Total Posts
      652k
×
×
  • Create New...