Changeset 923 for trunk


Ignore:
Timestamp:
May 27, 2019, 3:25:42 PM (6 years ago)
Author:
djay
Message:

Fix sqlapi

Location:
trunk/zoo-project/zoo-kernel
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/zoo-project/zoo-kernel/response_print.h

    r921 r923  
    6464#include <sys/stat.h>
    6565#include <sys/types.h>
    66 //#include "cgic.h"
    6766#ifndef WIN32
    6867#include <sys/ipc.h>
  • trunk/zoo-project/zoo-kernel/sqlapi.c

    r922 r923  
    5858 * @return the OGR connection string
    5959 */
    60 const char* _createInitString(maps* conf,const char* key){
     60char* _createInitString(maps* conf,const char* key){
    6161  char* res=NULL;
    6262  char keywords[6][14]={
     
    109109 * @return the OGR connection string
    110110 */
    111 const char* createInitString(maps* conf){
     111char* createInitString(maps* conf){
    112112  return _createInitString(conf,"database");
    113113}
     
    120120 */
    121121int _init_sql(maps* conf,const char* key){
    122   const char* sqlInitString=_createInitString(conf,key);
     122  char* sqlInitString=_createInitString(conf,key);
    123123#ifdef SQL_DEBUG
    124124  fprintf(stderr,"Try to connect to: %s %s !\n",key,sqlInitString);
  • trunk/zoo-project/zoo-kernel/sqlapi.h

    r921 r923  
    5353 
    5454#ifdef META_DB
    55   ZOO_DLL_EXPORT const char* _createInitString(maps*,const char*);
     55  ZOO_DLL_EXPORT char* _createInitString(maps*,const char*);
    5656  ZOO_DLL_EXPORT int _init_sql(maps*,const char*);
    5757  ZOO_DLL_EXPORT OGRLayer *fetchSql(maps*,int,const char*);
Note: See TracChangeset for help on using the changeset viewer.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png